UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ItemReference = void 0; class ItemReference { constructor(data) { let pathDefault = ""; this.path = typeof (data === null || data === void 0 ? void 0 : data.path) !== "undefined" ? data === null || data === void 0 ? void 0 : data.path : pathDefault; } static getPathDefault() { return ""; } static getPathDescription() { return "The element paths are made of the visible names of the entries in the content structure separated with forward slashes (\/), starting with an initial slash."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ItemReference(data); } toJson() { return { 'path': this.path, }; } clone() { return ItemReference.fromJson(this.toJson()); } } exports.ItemReference = ItemReference; //# sourceMappingURL=ItemReference.js.map