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