fromMap static method

GetPhoneNumberInfoSync? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static GetPhoneNumberInfoSync? 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 language_code = _map['language_code']! as String;
  var phone_number_prefix = _map['phone_number_prefix']! as String;
  return GetPhoneNumberInfoSync(
    extra: extra,
    clientId: clientId,
    language_code: language_code,
    phone_number_prefix: phone_number_prefix,
  );
}