react-native-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS
20 lines (19 loc) • 540 B
JavaScript
import { BarcodeItem } from '../barcode/BarcodeItem';
import { PartiallyConstructible } from '../../utils';
/**
Results of the barcode scan.
*/
export class BarcodeScannerResult extends PartiallyConstructible {
/**
Recognized barcode items.
*/
items = [];
/** @param source {@displayType `DeepPartial<BarcodeScannerResult>`} */
constructor(source = {}) {
super();
if (source.items !== undefined) {
this.items = source.items.map(it => new BarcodeItem(it));
}
}
}
//# sourceMappingURL=BarcodeResult.js.map