ListUserProfilesResponse.fromJson constructor

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

Implementation

factory ListUserProfilesResponse.fromJson(Map<String, dynamic> json) {
  return ListUserProfilesResponse(
    nextToken: json['NextToken'] as String?,
    userProfiles: (json['UserProfiles'] as List?)
        ?.whereNotNull()
        .map((e) => UserProfileDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}