ListIdentityPoolUsageResponse.fromJson constructor

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

Implementation

factory ListIdentityPoolUsageResponse.fromJson(Map<String, dynamic> json) {
  return ListIdentityPoolUsageResponse(
    count: json['Count'] as int?,
    identityPoolUsages: (json['IdentityPoolUsages'] as List?)
        ?.whereNotNull()
        .map((e) => IdentityPoolUsage.fromJson(e as Map<String, dynamic>))
        .toList(),
    maxResults: json['MaxResults'] as int?,
    nextToken: json['NextToken'] as String?,
  );
}