@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
34 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImageBackground = void 0;
const index_1 = require("./../index");
class ImageBackground {
constructor(data) {
this.image = index_1.BackgroundFileData.fromJson(data.image);
this.settings = index_1.BackgroundBaseSettings.fromJson(data === null || data === void 0 ? void 0 : data.settings);
}
static getImageDescription() {
return "";
}
static getSettingsDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ImageBackground(data);
}
toJson() {
var _a, _b;
return {
'image': (_a = this.image) === null || _a === void 0 ? void 0 : _a.toJson(),
'settings': (_b = this.settings) === null || _b === void 0 ? void 0 : _b.toJson(),
};
}
clone() {
return ImageBackground.fromJson(this.toJson());
}
}
exports.ImageBackground = ImageBackground;
//# sourceMappingURL=ImageBackground.js.map