UNPKG

mindee

Version:

Mindee Client Library for Node.js

17 lines (16 loc) 529 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StringField = void 0; const field_1 = require("./field"); /** * A field containing a text value. */ class StringField extends field_1.Field { constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) { super({ prediction, valueKey, reconstructed, pageId }); if (prediction["raw_value"]) { this.rawValue = prediction["raw_value"]; } } } exports.StringField = StringField;