UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

32 lines 983 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RemoveToolboxAttachment = void 0; const index_1 = require("./../index"); class RemoveToolboxAttachment { constructor(data) { this.selection = (data.selection || []).map(index_1.SelectionAttachment.fromJson); } static getSelectionDefault() { return []; } static getSelectionDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new RemoveToolboxAttachment(data); } toJson() { var _a; return { 'selection': (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), }; } clone() { return RemoveToolboxAttachment.fromJson(this.toJson()); } } exports.RemoveToolboxAttachment = RemoveToolboxAttachment; //# sourceMappingURL=RemoveToolboxAttachment.js.map