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.UserCertificates = void 0; const index_1 = require("./../index"); class UserCertificates { constructor(data) { this.certificates = (data.certificates || []).map(index_1.CertificateEntry.fromJson); this.keyStores = (data.keyStores || []).map(index_1.KeyStoreEntry.fromJson); } static getCertificatesDefault() { return []; } static getCertificatesDescription() { return "List of certificates"; } static getKeyStoresDefault() { return []; } static getKeyStoresDescription() { return "List of keystores"; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new UserCertificates(data); } toJson() { var _a, _b; return { 'certificates': (_a = this.certificates) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), 'keyStores': (_b = this.keyStores) === null || _b === void 0 ? void 0 : _b.map((data) => data.toJson()), }; } clone() { return UserCertificates.fromJson(this.toJson()); } } exports.UserCertificates = UserCertificates; //# sourceMappingURL=UserCertificates.js.map