UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

34 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommentToolboxAnnotation = void 0; const index_1 = require("./../index"); class CommentToolboxAnnotation { constructor(data) { this.add = index_1.AddComment.fromJson(data === null || data === void 0 ? void 0 : data.add); this.edit = index_1.EditComment.fromJson(data === null || data === void 0 ? void 0 : data.edit); } static getAddDescription() { return ""; } static getEditDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new CommentToolboxAnnotation(data); } toJson() { var _a, _b; return { 'add': (_a = this.add) === null || _a === void 0 ? void 0 : _a.toJson(), 'edit': (_b = this.edit) === null || _b === void 0 ? void 0 : _b.toJson(), }; } clone() { return CommentToolboxAnnotation.fromJson(this.toJson()); } } exports.CommentToolboxAnnotation = CommentToolboxAnnotation; //# sourceMappingURL=CommentToolboxAnnotation.js.map