mindee
Version:
Mindee Client Library for Node.js
21 lines (20 loc) • 676 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.FullTextOcrExtra = void 0;
const extras_1 = require("./extras");
class FullTextOcrExtra extends extras_1.ExtraField {
constructor(rawPrediction) {
super();
if (rawPrediction["content"]) {
this.content = "content" in rawPrediction ? rawPrediction["content"] : "";
this.languages = "languages" in rawPrediction ? rawPrediction["languages"] : "";
}
}
/**
* Default string representation.
*/
toString() {
return this.content !== undefined ? this.content : "";
}
}
exports.FullTextOcrExtra = FullTextOcrExtra;
;