PaymentReceiptType.fromJson constructor
Parses whichever PaymentReceiptType subtype the JSON describes.
Implementation
factory PaymentReceiptType.fromJson(Map<String, dynamic> json) {
final object = tdObjectFactories[json['@type']]?.call(json);
return object is PaymentReceiptType
? object
: UndecodedPaymentReceiptType(json);
}