fromMap static method
override
Construct from Map.
Implementation
static MessagePaymentSuccessfulBot? 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 currency = _map['currency']! as String;
var total_amount = _map['total_amount']! as int;
var is_recurring = _map['is_recurring']! as bool;
var is_first_recurring = _map['is_first_recurring']! as bool;
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']);
var telegram_payment_charge_id =
_map['telegram_payment_charge_id']! as String;
var provider_payment_charge_id =
_map['provider_payment_charge_id']! as String;
return MessagePaymentSuccessfulBot(
extra: extra,
clientId: clientId,
currency: currency,
total_amount: total_amount,
is_recurring: is_recurring,
is_first_recurring: is_first_recurring,
invoice_payload: invoice_payload,
shipping_option_id: shipping_option_id,
order_info: order_info,
telegram_payment_charge_id: telegram_payment_charge_id,
provider_payment_charge_id: provider_payment_charge_id,
);
}