@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
39 lines • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolboxAttachmentAttachment = void 0;
const index_1 = require("./../index");
class ToolboxAttachmentAttachment {
constructor(data) {
this.add = index_1.AddToolboxAttachment.fromJson(data === null || data === void 0 ? void 0 : data.add);
this.extract = index_1.ExtractToolboxAttachment.fromJson(data === null || data === void 0 ? void 0 : data.extract);
this.remove = index_1.RemoveToolboxAttachment.fromJson(data === null || data === void 0 ? void 0 : data.remove);
}
static getAddDescription() {
return "";
}
static getExtractDescription() {
return "";
}
static getRemoveDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ToolboxAttachmentAttachment(data);
}
toJson() {
var _a, _b, _c;
return {
'add': (_a = this.add) === null || _a === void 0 ? void 0 : _a.toJson(),
'extract': (_b = this.extract) === null || _b === void 0 ? void 0 : _b.toJson(),
'remove': (_c = this.remove) === null || _c === void 0 ? void 0 : _c.toJson(),
};
}
clone() {
return ToolboxAttachmentAttachment.fromJson(this.toJson());
}
}
exports.ToolboxAttachmentAttachment = ToolboxAttachmentAttachment;
//# sourceMappingURL=ToolboxAttachmentAttachment.js.map