@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
44 lines • 1.62 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Settings = void 0;
const index_1 = require("./../index");
class Settings {
constructor(data) {
this.compress = index_1.CompressSettings.fromJson(data === null || data === void 0 ? void 0 : data.compress);
this.http = index_1.HttpSettings.fromJson(data === null || data === void 0 ? void 0 : data.http);
this.pdfa = index_1.PdfaSettings.fromJson(data === null || data === void 0 ? void 0 : data.pdfa);
this.signature = index_1.SignatureSettings.fromJson(data === null || data === void 0 ? void 0 : data.signature);
}
static getCompressDescription() {
return "";
}
static getHttpDescription() {
return "";
}
static getPdfaDescription() {
return "";
}
static getSignatureDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Settings(data);
}
toJson() {
var _a, _b, _c, _d;
return {
'compress': (_a = this.compress) === null || _a === void 0 ? void 0 : _a.toJson(),
'http': (_b = this.http) === null || _b === void 0 ? void 0 : _b.toJson(),
'pdfa': (_c = this.pdfa) === null || _c === void 0 ? void 0 : _c.toJson(),
'signature': (_d = this.signature) === null || _d === void 0 ? void 0 : _d.toJson(),
};
}
clone() {
return Settings.fromJson(this.toJson());
}
}
exports.Settings = Settings;
//# sourceMappingURL=Settings.js.map