toJson method
Converts a RefundedPayment object to JSON.
Implementation
Map<String, dynamic> toJson() {
return {
'currency': currency,
'total_amount': totalAmount,
'invoice_payload': invoicePayload,
'telegram_payment_charge_id': telegramPaymentChargeId,
'provider_payment_charge_id': providerPaymentChargeId,
}..removeWhere(_nullFilter);
}