ListContactsResponse.fromJson constructor

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

Implementation

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