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