AuthConfig.fromJson constructor

AuthConfig.fromJson(
  1. Map json_
)

Implementation

AuthConfig.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,
        authKey: json_.containsKey('authKey')
            ? json_['authKey'] as core.String
            : null,
        authType: json_.containsKey('authType')
            ? json_['authType'] as core.String
            : null,
        oauth2AuthCodeFlow: json_.containsKey('oauth2AuthCodeFlow')
            ? Oauth2AuthCodeFlow.fromJson(json_['oauth2AuthCodeFlow']
                as core.Map<core.String, core.dynamic>)
            : null,
        oauth2ClientCredentials: json_.containsKey('oauth2ClientCredentials')
            ? Oauth2ClientCredentials.fromJson(
                json_['oauth2ClientCredentials']
                    as core.Map<core.String, core.dynamic>)
            : null,
        oauth2JwtBearer: json_.containsKey('oauth2JwtBearer')
            ? Oauth2JwtBearer.fromJson(json_['oauth2JwtBearer']
                as core.Map<core.String, core.dynamic>)
            : null,
        sshPublicKey: json_.containsKey('sshPublicKey')
            ? SshPublicKey.fromJson(
                json_['sshPublicKey'] as core.Map<core.String, core.dynamic>)
            : null,
        userPassword: json_.containsKey('userPassword')
            ? UserPassword.fromJson(
                json_['userPassword'] as core.Map<core.String, core.dynamic>)
            : null,
      );