PaymentReceipt.fromJson constructor

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

Parse from a json

Implementation

factory PaymentReceipt.fromJson(Map<String, dynamic> json) => PaymentReceipt(
      title: json['title'],
      description: FormattedText.fromJson(json['description']),
      photo: json['photo'] == null ? null : Photo.fromJson(json['photo']),
      date: json['date'],
      sellerBotUserId: json['seller_bot_user_id'],
      paymentProviderUserId: json['payment_provider_user_id'],
      invoice: Invoice.fromJson(json['invoice']),
      orderInfo: json['order_info'] == null
          ? null
          : OrderInfo.fromJson(json['order_info']),
      shippingOption: json['shipping_option'] == null
          ? null
          : ShippingOption.fromJson(json['shipping_option']),
      credentialsTitle: json['credentials_title'],
      tipAmount: json['tip_amount'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );