UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

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