fromJson static method

RFIDStatus? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._pa = CheckResult.getByValue(jsonObject["pa"])!;
  result._ca = CheckResult.getByValue(jsonObject["ca"])!;
  result._aa = CheckResult.getByValue(jsonObject["aa"])!;
  result._ta = CheckResult.getByValue(jsonObject["ta"])!;
  result._bac = CheckResult.getByValue(jsonObject["bac"])!;
  result._pace = CheckResult.getByValue(jsonObject["pace"])!;
  result._overallStatus =
      CheckResult.getByValue(jsonObject["overallStatus"])!;

  return result;
}