UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

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