CertificateAuthority.fromJson constructor

CertificateAuthority.fromJson(
  1. Map json_
)

Implementation

CertificateAuthority.fromJson(core.Map json_)
    : this(
        accessUrls: json_.containsKey('accessUrls')
            ? AccessUrls.fromJson(
                json_['accessUrls'] as core.Map<core.String, core.dynamic>)
            : null,
        caCertificateDescriptions:
            json_.containsKey('caCertificateDescriptions')
                ? (json_['caCertificateDescriptions'] as core.List)
                    .map((value) => CertificateDescription.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        config: json_.containsKey('config')
            ? CertificateConfig.fromJson(
                json_['config'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        gcsBucket: json_.containsKey('gcsBucket')
            ? json_['gcsBucket'] as core.String
            : null,
        keySpec: json_.containsKey('keySpec')
            ? KeyVersionSpec.fromJson(
                json_['keySpec'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lifetime: json_.containsKey('lifetime')
            ? json_['lifetime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        pemCaCertificates: json_.containsKey('pemCaCertificates')
            ? (json_['pemCaCertificates'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        satisfiesPzi: json_.containsKey('satisfiesPzi')
            ? json_['satisfiesPzi'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subordinateConfig: json_.containsKey('subordinateConfig')
            ? SubordinateConfig.fromJson(json_['subordinateConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        tier: json_.containsKey('tier') ? json_['tier'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );