UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

35 lines 1.35 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProviderConfiguration = void 0; const index_1 = require("./../index"); class ProviderConfiguration extends index_1.Configuration { constructor(data) { super(data); this.configuration = index_1.ProviderSettings.fromJson(data.configuration); this.configurationChecks = (data.configurationChecks || []).map(index_1.ProviderCheck.fromJson); } static getConfigurationDescription() { return ""; } static getConfigurationChecksDefault() { return []; } static getConfigurationChecksDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ProviderConfiguration(data); } toJson() { var _a, _b; 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()) }); } clone() { return ProviderConfiguration.fromJson(this.toJson()); } } exports.ProviderConfiguration = ProviderConfiguration; //# sourceMappingURL=ProviderConfiguration.js.map