@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 823 B
JavaScript
import{Barcode as e}from"./Barcode.js";import{LocalizedOnlyBarcode as t}from"./LocalizedOnlyBarcode.js";var n=class n{get newlyRecognizedBarcode(){return this._newlyRecognizedBarcode}get newlyLocalizedBarcodes(){return this._newlyLocalizedBarcodes}get frameSequenceID(){return this._frameSequenceID}static fromJSON(r){let i=new n;return r.newlyRecognizedBarcode&&(i._newlyRecognizedBarcode=e.fromJSON(r.newlyRecognizedBarcode)),i._newlyLocalizedBarcodes=r.newlyLocalizedBarcodes.map(e=>t.fromJSON(e)),i._frameSequenceID=r.frameSequenceId,i}toJSON(){var e;return JSON.stringify({newlyLocalizedBarcodes:this.newlyLocalizedBarcodes.map(e=>e.toJSONObject()),newlyRecognizedBarcode:((e=this.newlyRecognizedBarcode)==null?void 0:e.toJSONObject())??null,frameSequenceId:this.frameSequenceID})}};export{n as BarcodeCaptureSession};