UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SanitizeAnnotations = void 0; class SanitizeAnnotations { constructor(data) { let enabledDefault = true; this.enabled = typeof (data === null || data === void 0 ? void 0 : data.enabled) !== "undefined" ? data === null || data === void 0 ? void 0 : data.enabled : enabledDefault; } static getEnabledDefault() { return true; } static getEnabledDescription() { return "If set to \"false\", this sanitize operation shall not be applied."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new SanitizeAnnotations(data); } toJson() { return { 'enabled': this.enabled, }; } clone() { return SanitizeAnnotations.fromJson(this.toJson()); } } exports.SanitizeAnnotations = SanitizeAnnotations; //# sourceMappingURL=SanitizeAnnotations.js.map