SslConfig.fromJson constructor

SslConfig.fromJson(
  1. Map json_
)

Implementation

SslConfig.fromJson(core.Map json_)
    : this(
        additionalVariables: json_.containsKey('additionalVariables')
            ? (json_['additionalVariables'] as core.List)
                .map((value) => ConfigVariable.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')
            ? Secret.fromJson(json_['clientCertificate']
                as core.Map<core.String, core.dynamic>)
            : null,
        clientPrivateKey: json_.containsKey('clientPrivateKey')
            ? Secret.fromJson(json_['clientPrivateKey']
                as core.Map<core.String, core.dynamic>)
            : null,
        clientPrivateKeyPass: json_.containsKey('clientPrivateKeyPass')
            ? Secret.fromJson(json_['clientPrivateKeyPass']
                as core.Map<core.String, core.dynamic>)
            : null,
        privateServerCertificate:
            json_.containsKey('privateServerCertificate')
                ? Secret.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,
      );