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