fromJson static method
Implementation
static PaymentReceipt? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PaymentReceipt(
productInfo: ProductInfo.fromJson(tdMapFromJson(json['product_info'])),
date: (json['date'] as int?) ?? 0,
sellerBotUserId: (json['seller_bot_user_id'] as int?) ?? 0,
type: PaymentReceiptType.fromJson(tdMapFromJson(json['type'])),
);
}