fromJson method Null safety

RFIDSessionDataStatus? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.AA = jsonObject["AA"];
  result.BAC = jsonObject["BAC"];
  result.CA = jsonObject["CA"];
  result.PA = jsonObject["PA"];
  result.PACE = jsonObject["PACE"];
  result.TA = jsonObject["TA"];
  result.overallStatus = jsonObject["overallStatus"];

  return result;
}