UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

40 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServerCheck = void 0; const index_1 = require("./../index"); class ServerCheck { constructor(data) { let checkTypeDefault = "user"; this.checkType = typeof data.checkType !== "undefined" ? data.checkType : checkTypeDefault; } static getCheckTypeDefault() { return "user"; } static getCheckTypeDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } switch (data.checkType) { case 'connector': return index_1.ConnectorServerCheck.fromJson(data); case 'truststore': return index_1.TrustStoreServerCheck.fromJson(data); case 'user': return index_1.UserServerCheck.fromJson(data); } return new ServerCheck(data); } toJson() { return { 'checkType': this.checkType, }; } clone() { return ServerCheck.fromJson(this.toJson()); } } exports.ServerCheck = ServerCheck; //# sourceMappingURL=ServerCheck.js.map