UNPKG

mindee

Version:

Mindee Client Library for Node.js

13 lines (12 loc) 386 B
import { Field } from "./field.js"; /** * A field containing a text value. */ export class StringField extends Field { constructor({ prediction = {}, valueKey = "value", reconstructed = false, pageId, }) { super({ prediction, valueKey, reconstructed, pageId }); if (prediction["raw_value"]) { this.rawValue = prediction["raw_value"]; } } }