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