UNPKG

mindee

Version:

Mindee Client Library for Node.js

18 lines (17 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InferenceResult = void 0; const field_1 = require("./field"); const rawText_1 = require("./rawText"); class InferenceResult { constructor(serverResponse) { this.fields = new field_1.InferenceFields(serverResponse["fields"]); if (serverResponse["raw_text"]) { this.rawText = new rawText_1.RawText(serverResponse["raw_text"]); } } toString() { return `Fields\n======\n${this.fields}`; } } exports.InferenceResult = InferenceResult;