@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
6 lines (3 loc) • 526 B
JavaScript
import { Color } from '@scandit/web-datacapture-core';
var e=class i{constructor(o,n,l,r){this.inListItemColor=o,this.notInListItemColor=n,this.hapticEnabled=r,this.soundEnabled=l;}static fromJSON(o){return new i(Color.fromJSON(o.inListItemColor),Color.fromJSON(o.notInListItemColor),o.soundEnabled,o.hapticEnabled)}toJSONObject(){return {inListItemColor:this.inListItemColor.toJSON(),notInListItemColor:this.notInListItemColor.toJSON(),soundEnabled:this.soundEnabled,hapticEnabled:this.hapticEnabled}}};
export { e as a };