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