fromMap static method
override
Construct from Map.
Implementation
static MessagePaymentSuccessful? 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 invoice_chat_id = _map['invoice_chat_id']! as int;
var invoice_message_id = _map['invoice_message_id']! as int;
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_name = _map['invoice_name']! as String;
return MessagePaymentSuccessful(
extra: extra,
clientId: clientId,
invoice_chat_id: invoice_chat_id,
invoice_message_id: invoice_message_id,
currency: currency,
total_amount: total_amount,
is_recurring: is_recurring,
is_first_recurring: is_first_recurring,
invoice_name: invoice_name,
);
}