RefundedPayment.fromJson constructor

RefundedPayment.fromJson(
  1. Map<String, dynamic> json
)

Creates a RefundedPayment object from JSON.

Implementation

factory RefundedPayment.fromJson(Map<String, dynamic> json) {
  return RefundedPayment(
    currency: json['currency'],
    totalAmount: json['total_amount'],
    invoicePayload: json['invoice_payload'],
    telegramPaymentChargeId: json['telegram_payment_charge_id'],
    providerPaymentChargeId: json['provider_payment_charge_id'],
  );
}