fromJson static method

Validity? fromJson(
  1. dynamic jsonObject
)

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;
}