UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

55 lines (50 loc) 1.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CroppingResult = void 0; var _JsonSerializationTypes = require("../../utils/json/JsonSerializationTypes"); var _utils = require("../../utils/utils"); /// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from rtu-ui-v2/schemas/document/CroppingResult.yaml /** Configuration of the cropping result. */ class CroppingResult extends _utils.PartiallyConstructible { /** The UUID of the document that was cropped. */ /** The UUID of the page of the document that was cropped. */ /** The error message if a problem occurred. */ errorMessage = null; /** @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; } } serialize(config = new _JsonSerializationTypes.ToJsonConfiguration()) { return { documentUuid: this.documentUuid, pageUuid: this.pageUuid, errorMessage: this.errorMessage != null ? this.errorMessage : null }; } } exports.CroppingResult = CroppingResult; //# sourceMappingURL=CroppingResult.js.map