fromJson static method
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;
}