GoogleCloudOrgpolicyV2PolicySpec.fromJson constructor

GoogleCloudOrgpolicyV2PolicySpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudOrgpolicyV2PolicySpec.fromJson(core.Map json_)
    : this(
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        inheritFromParent: json_.containsKey('inheritFromParent')
            ? json_['inheritFromParent'] as core.bool
            : null,
        reset:
            json_.containsKey('reset') ? json_['reset'] as core.bool : null,
        rules: json_.containsKey('rules')
            ? (json_['rules'] as core.List)
                .map((value) =>
                    GoogleCloudOrgpolicyV2PolicySpecPolicyRule.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );