UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InfoFormXfaField = void 0; class InfoFormXfaField { constructor(data) { let matchDefault = "once"; this.match = typeof (data === null || data === void 0 ? void 0 : data.match) !== "undefined" ? data === null || data === void 0 ? void 0 : data.match : matchDefault; 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 getMatchDefault() { return "once"; } static getMatchDescription() { return ""; } static getNameDefault() { return ""; } static getNameDescription() { return "Name of the field in the XML data structure for the XFA field."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new InfoFormXfaField(data); } toJson() { return { 'match': this.match, 'name': this.name, }; } clone() { return InfoFormXfaField.fromJson(this.toJson()); } } exports.InfoFormXfaField = InfoFormXfaField; //# sourceMappingURL=InfoFormXfaField.js.map