fromJson static method

Comparison? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._sourceTypeLeft =
      ResultType.getByValue(jsonObject["sourceTypeLeft"])!;
  result._sourceTypeRight =
      ResultType.getByValue(jsonObject["sourceTypeRight"])!;
  result._status = CheckResult.getByValue(jsonObject["status"])!;

  return result;
}