UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 867 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Author = void 0; class Author { constructor(data) { let nameDefault = ""; this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault; } static getNameDefault() { return ""; } static getNameDescription() { return "The name of the person creating the document."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new Author(data); } toJson() { return { 'name': this.name, }; } clone() { return Author.fromJson(this.toJson()); } } exports.Author = Author; //# sourceMappingURL=Author.js.map