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