fromJson static method

AuthenticityElement? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._status = CheckResult.getByValue(jsonObject["status"])!;
  result._elementType =
      SecurityFeatureType.getByValue(jsonObject["elementType"])!;
  result._elementDiagnose =
      CheckDiagnose.getByValue(jsonObject["elementDiagnose"])!;
  result._elementTypeName = jsonObject["elementTypeName"];
  result._elementDiagnoseName = jsonObject["elementDiagnoseName"];

  return result;
}