fromJson static method

AuthenticityResult? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._status = CheckResult.getByValue(jsonObject["status"])!;
  for (var item in jsonObject["checks"]) {
    result._checks.addSafe(AuthenticityCheck.fromJson(item));
  }

  return result;
}