@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
31 lines • 989 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SanitizeMetadata = void 0;
class SanitizeMetadata {
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 SanitizeMetadata(data);
}
toJson() {
return {
'enabled': this.enabled,
};
}
clone() {
return SanitizeMetadata.fromJson(this.toJson());
}
}
exports.SanitizeMetadata = SanitizeMetadata;
//# sourceMappingURL=SanitizeMetadata.js.map