UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormValueStyle = void 0; class FormValueStyle { constructor(data) { let displayDefault = ""; this.display = typeof (data === null || data === void 0 ? void 0 : data.display) !== "undefined" ? data === null || data === void 0 ? void 0 : data.display : displayDefault; let exportDefault = ""; this._export = typeof (data === null || data === void 0 ? void 0 : data.export) !== "undefined" ? data === null || data === void 0 ? void 0 : data.export : exportDefault; let isDefaultDefault = false; this.isDefault = typeof (data === null || data === void 0 ? void 0 : data.isDefault) !== "undefined" ? data === null || data === void 0 ? void 0 : data.isDefault : isDefaultDefault; } static getDisplayDefault() { return ""; } static getDisplayDescription() { return "The displayable value."; } static getExportDefault() { return ""; } static getExportDescription() { return "The exportable value."; } static getIsDefaultDefault() { return false; } static getIsDefaultDescription() { return "True, if the given value is the default of the connected form field."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FormValueStyle(data); } toJson() { return { 'display': this.display, 'export': this._export, 'isDefault': this.isDefault, }; } clone() { return FormValueStyle.fromJson(this.toJson()); } } exports.FormValueStyle = FormValueStyle; //# sourceMappingURL=FormValueStyle.js.map