@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
32 lines • 927 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AddToolboxAttachment = void 0;
const index_1 = require("./../index");
class AddToolboxAttachment {
constructor(data) {
this.file = (data.file || []).map(index_1.FileAttachment.fromJson);
}
static getFileDefault() {
return [];
}
static getFileDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new AddToolboxAttachment(data);
}
toJson() {
var _a;
return {
'file': (_a = this.file) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
};
}
clone() {
return AddToolboxAttachment.fromJson(this.toJson());
}
}
exports.AddToolboxAttachment = AddToolboxAttachment;
//# sourceMappingURL=AddToolboxAttachment.js.map