PaymentReceipt.fromJson constructor
Parse from a json
Implementation
factory PaymentReceipt.fromJson(Map<String, dynamic> json) => PaymentReceipt(
title: json['title'],
description: json['description'],
photo: json['photo'] == null ? null : Photo.fromJson(json['photo']),
date: json['date'],
sellerBotUserId: json['seller_bot_user_id'],
paymentsProviderUserId: json['payments_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'],
);