SearchContactsResponse.fromJson constructor

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

Implementation

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