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<CertificateDescription>((value) =>
                        CertificateDescription.fromJson(
                            value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        certificatePolicy: _json.containsKey('certificatePolicy')
            ? CertificateAuthorityPolicy.fromJson(_json['certificatePolicy']
                as core.Map<core.String, core.dynamic>)
            : 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,
        gcsBucket: _json.containsKey('gcsBucket')
            ? _json['gcsBucket'] as core.String
            : null,
        issuingOptions: _json.containsKey('issuingOptions')
            ? IssuingOptions.fromJson(_json['issuingOptions']
                as core.Map<core.String, core.dynamic>)
            : 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, item) => core.MapEntry(
                  key,
                  item 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<core.String>((value) => value as core.String)
                .toList()
            : 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,
      );