fromJson static method

BarcodeField? fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

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

  result._barcodeType = BarcodeType.getByValue(jsonObject["barcodeType"])!;
  result._status = BarcodeStatus.getByValue(jsonObject["status"])!;
  result._pageIndex = jsonObject["pageIndex"];
  result._pdf417Info = PDF417Info.fromJson(jsonObject["pdf417Info"]);
  result._data = _bytesFromBase64(jsonObject["data"]);

  return result;
}