capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
30 lines • 1.03 kB
JavaScript
import { PartiallyConstructible } from '../../utils';
/**
Configuration of the cropping result.
*/
export class CroppingResult extends PartiallyConstructible {
/** @param source {@displayType `DeepPartial<CroppingResult>`} */
constructor(source = {}) {
super();
if (source.documentUuid !== undefined) {
this.documentUuid = source.documentUuid;
}
else {
throw new Error('documentUuid must be present in constructor argument');
}
if (source.pageUuid !== undefined) {
this.pageUuid = source.pageUuid;
}
else {
throw new Error('pageUuid must be present in constructor argument');
}
if (source.errorMessage !== undefined) {
this.errorMessage =
source.errorMessage != null ? source.errorMessage : null;
}
else {
throw new Error('errorMessage must be present in constructor argument');
}
}
}
//# sourceMappingURL=CroppingResult.js.map