UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectKeySelectionAnnotation = void 0; class ObjectKeySelectionAnnotation { constructor(data) { let idDefault = ""; this.id = typeof (data === null || data === void 0 ? void 0 : data.id) !== "undefined" ? data === null || data === void 0 ? void 0 : data.id : idDefault; } static getIdDefault() { return ""; } static getIdDescription() { return "The object id shall be given as a String that may contain either:\n\n* The numeric object ID itself\n* The object ID followed by the generation number, separated by a space"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ObjectKeySelectionAnnotation(data); } toJson() { return { 'id': this.id, }; } clone() { return ObjectKeySelectionAnnotation.fromJson(this.toJson()); } } exports.ObjectKeySelectionAnnotation = ObjectKeySelectionAnnotation; //# sourceMappingURL=ObjectKeySelectionAnnotation.js.map