FactCheck.fromJson constructor

FactCheck.fromJson(
  1. Map<String, dynamic> json
)

Parses a FactCheck from TDLib JSON.

Implementation

factory FactCheck.fromJson(Map<String, dynamic> json) => FactCheck(
  text: _readObject(json['text'], FormattedText.fromJson),
  countryCode: _readString(json['country_code']),
);