ListIdentityPoolsResponse.fromJson constructor

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

Implementation

factory ListIdentityPoolsResponse.fromJson(Map<String, dynamic> json) {
  return ListIdentityPoolsResponse(
    identityPools: (json['IdentityPools'] as List?)
        ?.whereNotNull()
        .map((e) =>
            IdentityPoolShortDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}