PhoneNumber.fromJson constructor

PhoneNumber.fromJson(
  1. Map<String, dynamic> map
)

Implementation

factory PhoneNumber.fromJson(Map<String, dynamic> map) {
  return PhoneNumber(
    isoCode: IsoCode.values.byName(map['isoCode']),
    nsn: map['nsn'] ?? '',
  );
}