UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

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