UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

32 lines 882 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ImagesDocument = void 0; const index_1 = require("./../index"); class ImagesDocument { constructor(data) { this.image = (data.image || []).map(index_1.Image.fromJson); } static getImageDefault() { return []; } static getImageDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ImagesDocument(data); } toJson() { var _a; return { 'image': (_a = this.image) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), }; } clone() { return ImagesDocument.fromJson(this.toJson()); } } exports.ImagesDocument = ImagesDocument; //# sourceMappingURL=ImagesDocument.js.map