toJson method

Map<String, dynamic> toJson()

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);
}