MasterAuth.fromJson constructor

MasterAuth.fromJson(
  1. Map json_
)

Implementation

MasterAuth.fromJson(core.Map json_)
    : this(
        clientCertificate: json_.containsKey('clientCertificate')
            ? json_['clientCertificate'] as core.String
            : null,
        clientCertificateConfig: json_.containsKey('clientCertificateConfig')
            ? ClientCertificateConfig.fromJson(
                json_['clientCertificateConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        clientKey: json_.containsKey('clientKey')
            ? json_['clientKey'] as core.String
            : null,
        clusterCaCertificate: json_.containsKey('clusterCaCertificate')
            ? json_['clusterCaCertificate'] as core.String
            : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );