GoogleCloudOrgpolicyV1Policy.fromJson constructor

GoogleCloudOrgpolicyV1Policy.fromJson(
  1. Map json_
)

Implementation

GoogleCloudOrgpolicyV1Policy.fromJson(core.Map json_)
    : this(
        booleanPolicy: json_.containsKey('booleanPolicy')
            ? GoogleCloudOrgpolicyV1BooleanPolicy.fromJson(
                json_['booleanPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        constraint: json_.containsKey('constraint')
            ? json_['constraint'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        listPolicy: json_.containsKey('listPolicy')
            ? GoogleCloudOrgpolicyV1ListPolicy.fromJson(
                json_['listPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        restoreDefault: json_.containsKey('restoreDefault')
            ? GoogleCloudOrgpolicyV1RestoreDefault.fromJson(
                json_['restoreDefault']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.int
            : null,
      );