fromJson static method
Implementation
static PhoneNumberInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PhoneNumberInfo(
country: CountryInfo.fromJson(json['country'] as Map<String, dynamic>?),
countryCallingCode: (json['country_calling_code'] as String?) ?? '',
formattedPhoneNumber: (json['formatted_phone_number'] as String?) ?? '',
isAnonymous: (json['is_anonymous'] as bool?) ?? false,
);
}