UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

39 lines 1.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApplicationConfiguration = void 0; const index_1 = require("./../index"); class ApplicationConfiguration extends index_1.Configuration { constructor(data) { super(data); this.configuration = index_1.Application.fromJson(data.configuration); this.configurationChecks = (data.configurationChecks || []).map(index_1.ApplicationCheck.fromJson); this.globalKeyStore = index_1.GlobalKeyStore.fromJson(data === null || data === void 0 ? void 0 : data.globalKeyStore); } static getConfigurationDescription() { return ""; } static getConfigurationChecksDefault() { return []; } static getConfigurationChecksDescription() { return ""; } static getGlobalKeyStoreDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ApplicationConfiguration(data); } toJson() { var _a, _b, _c; return Object.assign(Object.assign({}, (super.toJson())), { 'configuration': (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.toJson(), 'configurationChecks': (_b = this.configurationChecks) === null || _b === void 0 ? void 0 : _b.map((data) => data.toJson()), 'globalKeyStore': (_c = this.globalKeyStore) === null || _c === void 0 ? void 0 : _c.toJson() }); } clone() { return ApplicationConfiguration.fromJson(this.toJson()); } } exports.ApplicationConfiguration = ApplicationConfiguration; //# sourceMappingURL=ApplicationConfiguration.js.map