PaymentReceipt.fromJson constructor
Parses a PaymentReceipt from TDLib JSON.
Implementation
factory PaymentReceipt.fromJson(Map<String, dynamic> json) => PaymentReceipt(
productInfo: _readObject(json['product_info'], ProductInfo.fromJson),
date: _readInt(json['date']),
sellerBotUserId: _readInt(json['seller_bot_user_id']),
type: _readObject(json['type'], PaymentReceiptType.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);