UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

44 lines 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RelationMarkup = void 0; const index_1 = require("./../index"); class RelationMarkup { constructor(data) { this.comment = index_1.CommentRelation.fromJson(data === null || data === void 0 ? void 0 : data.comment); this.group = index_1.GroupRelation.fromJson(data === null || data === void 0 ? void 0 : data.group); this.mark = index_1.MarkRelation.fromJson(data === null || data === void 0 ? void 0 : data.mark); this.state = index_1.ReplyStateRelation.fromJson(data === null || data === void 0 ? void 0 : data.state); } static getCommentDescription() { return ""; } static getGroupDescription() { return ""; } static getMarkDescription() { return ""; } static getStateDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new RelationMarkup(data); } toJson() { var _a, _b, _c, _d; return { 'comment': (_a = this.comment) === null || _a === void 0 ? void 0 : _a.toJson(), 'group': (_b = this.group) === null || _b === void 0 ? void 0 : _b.toJson(), 'mark': (_c = this.mark) === null || _c === void 0 ? void 0 : _c.toJson(), 'state': (_d = this.state) === null || _d === void 0 ? void 0 : _d.toJson(), }; } clone() { return RelationMarkup.fromJson(this.toJson()); } } exports.RelationMarkup = RelationMarkup; //# sourceMappingURL=RelationMarkup.js.map