fromJson static method

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

Implementation

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

  result._code = RFIDErrorCodes.getByValue(jsonObject["code"])!;
  result._message = jsonObject["message"] ?? "";

  return result;
}