GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview.fromJson constructor

GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview.fromJson(
  1. Map json_
)

Implementation

GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview.fromJson(
    core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        customConstraints: json_.containsKey('customConstraints')
            ? (json_['customConstraints'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        overlay: json_.containsKey('overlay')
            ? GoogleCloudPolicysimulatorV1OrgPolicyOverlay.fromJson(
                json_['overlay'] as core.Map<core.String, core.dynamic>)
            : null,
        resourceCounts: json_.containsKey('resourceCounts')
            ? GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts
                .fromJson(json_['resourceCounts']
                    as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        violationsCount: json_.containsKey('violationsCount')
            ? json_['violationsCount'] as core.int
            : null,
      );