ClientTlsPolicy.fromJson constructor

ClientTlsPolicy.fromJson(
  1. Map _json
)

Implementation

ClientTlsPolicy.fromJson(core.Map _json)
    : this(
        clientCertificate: _json.containsKey('clientCertificate')
            ? GoogleCloudNetworksecurityV1beta1CertificateProvider.fromJson(
                _json['clientCertificate']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : 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,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        serverValidationCa: _json.containsKey('serverValidationCa')
            ? (_json['serverValidationCa'] as core.List)
                .map<ValidationCA>((value) => ValidationCA.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        sni: _json.containsKey('sni') ? _json['sni'] as core.String : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );