UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

43 lines 1.71 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConverterTemplate = void 0; const index_1 = require("./../index"); class ConverterTemplate { constructor(data) { this.data = index_1.TemplateData.fromJson(data === null || data === void 0 ? void 0 : data.data); this.file = index_1.TemplateFile.fromJson(data === null || data === void 0 ? void 0 : data.file); let languageDefault = ""; this.language = typeof (data === null || data === void 0 ? void 0 : data.language) !== "undefined" ? data === null || data === void 0 ? void 0 : data.language : languageDefault; } static getDataDescription() { return ""; } static getFileDescription() { return ""; } static getLanguageDefault() { return ""; } static getLanguageDescription() { return "An ISO 639-1-compliant language code consisting of 2 letters. If there is one, a localized template will be selected using the language selected here. If not defined, the language in which webPDF is run will be used."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ConverterTemplate(data); } toJson() { var _a, _b; return { 'data': (_a = this.data) === null || _a === void 0 ? void 0 : _a.toJson(), 'file': (_b = this.file) === null || _b === void 0 ? void 0 : _b.toJson(), 'language': this.language, }; } clone() { return ConverterTemplate.fromJson(this.toJson()); } } exports.ConverterTemplate = ConverterTemplate; //# sourceMappingURL=ConverterTemplate.js.map