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