SearchProfilesResponse.fromJson constructor

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

Implementation

factory SearchProfilesResponse.fromJson(Map<String, dynamic> json) {
  return SearchProfilesResponse(
    nextToken: json['NextToken'] as String?,
    profiles: (json['Profiles'] as List?)
        ?.whereNotNull()
        .map((e) => ProfileData.fromJson(e as Map<String, dynamic>))
        .toList(),
    totalCount: json['TotalCount'] as int?,
  );
}