@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
54 lines • 2.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolboxExtractionExtraction = void 0;
const index_1 = require("./../index");
class ToolboxExtractionExtraction {
constructor(data) {
this.images = index_1.ExtractionImages.fromJson(data === null || data === void 0 ? void 0 : data.images);
this.info = index_1.ExtractionInfo.fromJson(data === null || data === void 0 ? void 0 : data.info);
this.links = index_1.ExtractionLinks.fromJson(data === null || data === void 0 ? void 0 : data.links);
this.paragraphs = index_1.ExtractionParagraphs.fromJson(data === null || data === void 0 ? void 0 : data.paragraphs);
this.text = index_1.ExtractionText.fromJson(data === null || data === void 0 ? void 0 : data.text);
this.words = index_1.ExtractionWords.fromJson(data === null || data === void 0 ? void 0 : data.words);
}
static getImagesDescription() {
return "";
}
static getInfoDescription() {
return "";
}
static getLinksDescription() {
return "";
}
static getParagraphsDescription() {
return "";
}
static getTextDescription() {
return "";
}
static getWordsDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ToolboxExtractionExtraction(data);
}
toJson() {
var _a, _b, _c, _d, _e, _f;
return {
'images': (_a = this.images) === null || _a === void 0 ? void 0 : _a.toJson(),
'info': (_b = this.info) === null || _b === void 0 ? void 0 : _b.toJson(),
'links': (_c = this.links) === null || _c === void 0 ? void 0 : _c.toJson(),
'paragraphs': (_d = this.paragraphs) === null || _d === void 0 ? void 0 : _d.toJson(),
'text': (_e = this.text) === null || _e === void 0 ? void 0 : _e.toJson(),
'words': (_f = this.words) === null || _f === void 0 ? void 0 : _f.toJson(),
};
}
clone() {
return ToolboxExtractionExtraction.fromJson(this.toJson());
}
}
exports.ToolboxExtractionExtraction = ToolboxExtractionExtraction;
//# sourceMappingURL=ToolboxExtractionExtraction.js.map