fromJson static method
Allows you to deserialize object.
Implementation
static Validity? fromJson(jsonObject) {
if (jsonObject == null) return null;
var result = Validity();
result._sourceType = ResultType.getByValue(jsonObject["sourceType"])!;
result._status = CheckResult.getByValue(jsonObject["status"])!;
return result;
}