PhoneNumberInfo.fromJson constructor
Parses a PhoneNumberInfo from TDLib JSON.
Implementation
factory PhoneNumberInfo.fromJson(Map<String, dynamic> json) =>
PhoneNumberInfo(
country: _readOptional(json['country'], CountryInfo.fromJson),
countryCallingCode: _readString(json['country_calling_code']),
formattedPhoneNumber: _readString(json['formatted_phone_number']),
isAnonymous: _readBool(json['is_anonymous']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);