fromJson static method

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

Creates a object from a json

Implementation

static SuccessfulPayment fromJson(Map<String, dynamic> json) {
  return SuccessfulPayment(
    currency: json['currency']!,
    totalAmount: json['total_amount']!,
    invoicePayload: json['invoice_payload']!,
    shippingOptionId: json['shipping_option_id'],
    orderInfo: callIfNotNull(OrderInfo.fromJson, json['order_info']),
    telegramPaymentChargeId: json['telegram_payment_charge_id']!,
    providerPaymentChargeId: json['provider_payment_charge_id']!,
  );
}