toJson method

  1. @override
Map<String, dynamic> toJson()
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
  };
}