@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
36 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClusterCheck = void 0;
const index_1 = require("./../index");
class ClusterCheck {
constructor(data) {
let checkTypeDefault = "connect";
this.checkType = typeof data.checkType !== "undefined" ? data.checkType : checkTypeDefault;
}
static getCheckTypeDefault() {
return "connect";
}
static getCheckTypeDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
switch (data.checkType) {
case 'connect':
return index_1.ConnectClusterCheck.fromJson(data);
}
return new ClusterCheck(data);
}
toJson() {
return {
'checkType': this.checkType,
};
}
clone() {
return ClusterCheck.fromJson(this.toJson());
}
}
exports.ClusterCheck = ClusterCheck;
//# sourceMappingURL=ClusterCheck.js.map