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