fromJson static method

  1. @visibleForTesting
RFIDNotification? fromJson(
  1. dynamic jsonObject
)

Implementation

@visibleForTesting
static RFIDNotification? fromJson(jsonObject) {
  if (jsonObject == null) return null;
  var result = RFIDNotification();

  result._notificationCode =
      RFIDNotificationCodes.getByValue(jsonObject["notificationCode"])!;
  result._dataFileType =
      RFIDDataFileType.getByValue(jsonObject["dataFileType"])!;
  result._progress = jsonObject["progress"];

  return result;
}