GetIdentityPoolRolesResponse.fromJson constructor

GetIdentityPoolRolesResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetIdentityPoolRolesResponse.fromJson(Map<String, dynamic> json) {
  return GetIdentityPoolRolesResponse(
    identityPoolId: json['IdentityPoolId'] as String?,
    roleMappings: (json['RoleMappings'] as Map<String, dynamic>?)?.map(
        (k, e) =>
            MapEntry(k, RoleMapping.fromJson(e as Map<String, dynamic>))),
    roles: (json['Roles'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}