DeployedIndexAuthConfig_AuthProvider.fromJson constructor
DeployedIndexAuthConfig_AuthProvider.fromJson(
- Object? j
Implementation
factory DeployedIndexAuthConfig_AuthProvider.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DeployedIndexAuthConfig_AuthProvider(
audiences: switch (json['audiences']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"audiences" is not a list'),
},
allowedIssuers: switch (json['allowedIssuers']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"allowedIssuers" is not a list'),
},
);
}