@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
69 lines • 3.02 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Sanitize = void 0;
const index_1 = require("./../index");
class Sanitize {
constructor(data) {
this.actions = index_1.SanitizeActions.fromJson(data === null || data === void 0 ? void 0 : data.actions);
this.annotations = index_1.SanitizeAnnotations.fromJson(data === null || data === void 0 ? void 0 : data.annotations);
this.attachments = index_1.SanitizeAttachments.fromJson(data === null || data === void 0 ? void 0 : data.attachments);
this.forms = index_1.SanitizeForms.fromJson(data === null || data === void 0 ? void 0 : data.forms);
this.layers = index_1.SanitizeLayers.fromJson(data === null || data === void 0 ? void 0 : data.layers);
this.metadata = index_1.SanitizeMetadata.fromJson(data === null || data === void 0 ? void 0 : data.metadata);
this.outlines = index_1.SanitizeOutlines.fromJson(data === null || data === void 0 ? void 0 : data.outlines);
this.pages = index_1.SanitizePages.fromJson(data === null || data === void 0 ? void 0 : data.pages);
this.tags = index_1.SanitizeTags.fromJson(data === null || data === void 0 ? void 0 : data.tags);
}
static getActionsDescription() {
return "";
}
static getAnnotationsDescription() {
return "";
}
static getAttachmentsDescription() {
return "";
}
static getFormsDescription() {
return "";
}
static getLayersDescription() {
return "";
}
static getMetadataDescription() {
return "";
}
static getOutlinesDescription() {
return "";
}
static getPagesDescription() {
return "";
}
static getTagsDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Sanitize(data);
}
toJson() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
return {
'actions': (_a = this.actions) === null || _a === void 0 ? void 0 : _a.toJson(),
'annotations': (_b = this.annotations) === null || _b === void 0 ? void 0 : _b.toJson(),
'attachments': (_c = this.attachments) === null || _c === void 0 ? void 0 : _c.toJson(),
'forms': (_d = this.forms) === null || _d === void 0 ? void 0 : _d.toJson(),
'layers': (_e = this.layers) === null || _e === void 0 ? void 0 : _e.toJson(),
'metadata': (_f = this.metadata) === null || _f === void 0 ? void 0 : _f.toJson(),
'outlines': (_g = this.outlines) === null || _g === void 0 ? void 0 : _g.toJson(),
'pages': (_h = this.pages) === null || _h === void 0 ? void 0 : _h.toJson(),
'tags': (_j = this.tags) === null || _j === void 0 ? void 0 : _j.toJson(),
};
}
clone() {
return Sanitize.fromJson(this.toJson());
}
}
exports.Sanitize = Sanitize;
//# sourceMappingURL=Sanitize.js.map