fromJson static method

TextSource? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static TextSource? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = TextSource();

  result._sourceType = ResultType.getByValue(jsonObject["sourceType"])!;
  result._source = jsonObject["source"];
  result._validityStatus =
      CheckResult.getByValue(jsonObject["validityStatus"])!;

  return result;
}