ListPhoneNumbersResponse.fromJson constructor

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

Implementation

factory ListPhoneNumbersResponse.fromJson(Map<String, dynamic> json) {
  return ListPhoneNumbersResponse(
    nextToken: json['NextToken'] as String?,
    phoneNumbers: (json['PhoneNumbers'] as List?)
        ?.whereNotNull()
        .map((e) => PhoneNumber.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}