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