fromMap static method
override
Construct from Map.
Implementation
static SendPaymentForm? 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 input_invoice = InputInvoice.fromMap(_map['input_invoice'])!;
var payment_form_id = _map['payment_form_id']! as int64;
var order_info_id = _map['order_info_id']! as String;
var shipping_option_id = _map['shipping_option_id']! as String;
var credentials = InputCredentials.fromMap(_map['credentials'])!;
var tip_amount = _map['tip_amount']! as int;
return SendPaymentForm(
extra: extra,
clientId: clientId,
input_invoice: input_invoice,
payment_form_id: payment_form_id,
order_info_id: order_info_id,
shipping_option_id: shipping_option_id,
credentials: credentials,
tip_amount: tip_amount,
);
}