fromJson method Null safety

DocumentReaderBarcodeField? fromJson(
  1. dynamic jsonObject
)

Implementation

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

  result.barcodeType = jsonObject["barcodeType"];
  result.status = jsonObject["status"];
  result.pageIndex = jsonObject["pageIndex"];
  result.pdf417Info = PDF417Info.fromJson(jsonObject["pdf417Info"]);
  result.data = jsonObject["data"];

  return result;
}