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