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