fromMap static method
override
Construct from Map.
Implementation
static UpdateNewShippingQuery? 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 id = _map['id']! as int64;
var sender_user_id = _map['sender_user_id']! as int;
var invoice_payload = _map['invoice_payload']! as String;
var shipping_address = Address.fromMap(_map['shipping_address'])!;
return UpdateNewShippingQuery(
extra: extra,
clientId: clientId,
id: id,
sender_user_id: sender_user_id,
invoice_payload: invoice_payload,
shipping_address: shipping_address,
);
}