IdentityPool.fromJson constructor
IdentityPool.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IdentityPool.fromJson(Map<String, dynamic> json) {
return IdentityPool(
allowUnauthenticatedIdentities:
json['AllowUnauthenticatedIdentities'] as bool,
identityPoolId: json['IdentityPoolId'] as String,
identityPoolName: json['IdentityPoolName'] as String,
allowClassicFlow: json['AllowClassicFlow'] as bool?,
cognitoIdentityProviders: (json['CognitoIdentityProviders'] as List?)
?.whereNotNull()
.map((e) =>
CognitoIdentityProvider.fromJson(e as Map<String, dynamic>))
.toList(),
developerProviderName: json['DeveloperProviderName'] as String?,
identityPoolTags: (json['IdentityPoolTags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
openIdConnectProviderARNs: (json['OpenIdConnectProviderARNs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
samlProviderARNs: (json['SamlProviderARNs'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
supportedLoginProviders:
(json['SupportedLoginProviders'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}