AuthConfig.fromJson constructor

AuthConfig.fromJson(
  1. Object? j
)

Implementation

factory AuthConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return AuthConfig(
    apiKeyConfig: switch (json['apiKeyConfig']) {
      null => null,
      Object $1 => AuthConfig_ApiKeyConfig.fromJson($1),
    },
    httpBasicAuthConfig: switch (json['httpBasicAuthConfig']) {
      null => null,
      Object $1 => AuthConfig_HttpBasicAuthConfig.fromJson($1),
    },
    googleServiceAccountConfig: switch (json['googleServiceAccountConfig']) {
      null => null,
      Object $1 => AuthConfig_GoogleServiceAccountConfig.fromJson($1),
    },
    oauthConfig: switch (json['oauthConfig']) {
      null => null,
      Object $1 => AuthConfig_OauthConfig.fromJson($1),
    },
    oidcConfig: switch (json['oidcConfig']) {
      null => null,
      Object $1 => AuthConfig_OidcConfig.fromJson($1),
    },
    authType: switch (json['authType']) {
      null => AuthType.$default,
      Object $1 => AuthType.fromJson($1),
    },
  );
}