PhoneNumberSummary.fromJson constructor

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

Implementation

factory PhoneNumberSummary.fromJson(Map<String, dynamic> json) {
  return PhoneNumberSummary(
    arn: json['Arn'] as String?,
    id: json['Id'] as String?,
    phoneNumber: json['PhoneNumber'] as String?,
    phoneNumberCountryCode: (json['PhoneNumberCountryCode'] as String?)
        ?.toPhoneNumberCountryCode(),
    phoneNumberType:
        (json['PhoneNumberType'] as String?)?.toPhoneNumberType(),
  );
}