fromJson static method

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

Implementation

static FactCheck? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return FactCheck(
    text: FormattedText.fromJson(tdMapFromJson(json['text'])),
    countryCode: (json['country_code'] as String?) ?? '',
  );
}