GoogleCloudConnectorsV1SslConfig.fromJson constructor

GoogleCloudConnectorsV1SslConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudConnectorsV1SslConfig.fromJson(core.Map json_)
    : this(
        additionalVariables: json_.containsKey('additionalVariables')
            ? (json_['additionalVariables'] as core.List)
                .map((value) =>
                    GoogleCloudConnectorsV1ConfigVariable.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        clientCertType: json_.containsKey('clientCertType')
            ? json_['clientCertType'] as core.String
            : null,
        clientCertificate: json_.containsKey('clientCertificate')
            ? GoogleCloudConnectorsV1Secret.fromJson(
                json_['clientCertificate']
                    as core.Map<core.String, core.dynamic>)
            : null,
        clientPrivateKey: json_.containsKey('clientPrivateKey')
            ? GoogleCloudConnectorsV1Secret.fromJson(json_['clientPrivateKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        clientPrivateKeyPass: json_.containsKey('clientPrivateKeyPass')
            ? GoogleCloudConnectorsV1Secret.fromJson(
                json_['clientPrivateKeyPass']
                    as core.Map<core.String, core.dynamic>)
            : null,
        privateServerCertificate:
            json_.containsKey('privateServerCertificate')
                ? GoogleCloudConnectorsV1Secret.fromJson(
                    json_['privateServerCertificate']
                        as core.Map<core.String, core.dynamic>)
                : null,
        serverCertType: json_.containsKey('serverCertType')
            ? json_['serverCertType'] as core.String
            : null,
        trustModel: json_.containsKey('trustModel')
            ? json_['trustModel'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        useSsl:
            json_.containsKey('useSsl') ? json_['useSsl'] as core.bool : null,
      );