UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

34 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddBackground = void 0; const index_1 = require("./../index"); class AddBackground { constructor(data) { this.colorBackground = index_1.ColorBackground.fromJson(data === null || data === void 0 ? void 0 : data.colorBackground); this.imageBackground = index_1.ImageBackground.fromJson(data === null || data === void 0 ? void 0 : data.imageBackground); } static getColorBackgroundDescription() { return ""; } static getImageBackgroundDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new AddBackground(data); } toJson() { var _a, _b; return { 'colorBackground': (_a = this.colorBackground) === null || _a === void 0 ? void 0 : _a.toJson(), 'imageBackground': (_b = this.imageBackground) === null || _b === void 0 ? void 0 : _b.toJson(), }; } clone() { return AddBackground.fromJson(this.toJson()); } } exports.AddBackground = AddBackground; //# sourceMappingURL=AddBackground.js.map