UNPKG

react-native-scanbot-sdk

Version:

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

51 lines (43 loc) 1.48 kB
/// Auto-generated with ScanbotSDKCodegenV3. Modifications will be overwritten. /// Generated from core/schemas/JSONSerializationTypes.yaml import { PartiallyConstructible } from '../../utils/utils'; /** Configuration used to serialize an object to json. */ export class ToJsonConfiguration extends PartiallyConstructible { /** Serialize images in the object to json. If false, then fields that contain images are not serialized. Default is true */ serializeImages = true; /** Image serialization mode. Default is REFERENCE */ imageSerializationMode = 'REFERENCE'; /** @param source {@displayType `DeepPartial<ToJsonConfiguration>`} */ constructor(source = {}) { super(); if (source.serializeImages !== undefined) { this.serializeImages = source.serializeImages; } if (source.imageSerializationMode !== undefined) { this.imageSerializationMode = source.imageSerializationMode; } } serialize(config = new ToJsonConfiguration()) { return { serializeImages: this.serializeImages, imageSerializationMode: this.imageSerializationMode }; } } /** Image serialization mode. Applicable only when serializeImages is true. - `REFERENCE`: Images are serialized as references to native resources. - `BUFFER`: Images are serialized as base64 encoded buffers. */ export const ImageSerializationModeValues = ['REFERENCE', 'BUFFER']; //# sourceMappingURL=JsonSerializationTypes.js.map