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