fromMap static method
override
Construct from Map.
Implementation
static UpdateNewPreCheckoutQuery? 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 currency = _map['currency']! as String;
var total_amount = _map['total_amount']! as int;
var invoice_payload = _map['invoice_payload']! as bytes;
var shipping_option_id = _map['shipping_option_id']! as String;
var order_info = OrderInfo.fromMap(_map['order_info']);
return UpdateNewPreCheckoutQuery(
extra: extra,
clientId: clientId,
id: id,
sender_user_id: sender_user_id,
currency: currency,
total_amount: total_amount,
invoice_payload: invoice_payload,
shipping_option_id: shipping_option_id,
order_info: order_info,
);
}