MessagePaymentSuccessfulBot.fromJson constructor

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

Parse from a json

Implementation

factory MessagePaymentSuccessfulBot.fromJson(Map<String, dynamic> json) => MessagePaymentSuccessfulBot(
  currency: json['currency'],
  totalAmount: json['total_amount'],
  invoicePayload: json['invoice_payload'],
  shippingOptionId: json['shipping_option_id'],
  orderInfo: json['order_info'] == null ? null : OrderInfo.fromJson(json['order_info']),
  telegramPaymentChargeId: json['telegram_payment_charge_id'],
  providerPaymentChargeId: json['provider_payment_charge_id'],
);