toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messagePaymentSuccessfulBot',
if (extra != null) '@extra': extra,
'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
};
}