ServerTlsPolicy.fromJson constructor

ServerTlsPolicy.fromJson(
  1. Map _json
)

Implementation

ServerTlsPolicy.fromJson(core.Map _json)
    : this(
        allowOpen: _json.containsKey('allowOpen')
            ? _json['allowOpen'] as core.bool
            : 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,
        mtlsPolicy: _json.containsKey('mtlsPolicy')
            ? MTLSPolicy.fromJson(
                _json['mtlsPolicy'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        serverCertificate: _json.containsKey('serverCertificate')
            ? GoogleCloudNetworksecurityV1beta1CertificateProvider.fromJson(
                _json['serverCertificate']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );