fromMap static method
override
Construct from Map.
Implementation
static PhoneNumberInfo? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var country = CountryInfo.fromMap(_map['country']);
var country_calling_code = _map['country_calling_code']! as String;
var formatted_phone_number = _map['formatted_phone_number']! as String;
var is_anonymous = _map['is_anonymous']! as bool;
return PhoneNumberInfo(
extra: extra,
clientId: clientId,
country: country,
country_calling_code: country_calling_code,
formatted_phone_number: formatted_phone_number,
is_anonymous: is_anonymous,
);
}