UNPKG

mindee

Version:

Mindee Client Library for Node.js

18 lines (17 loc) 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClassificationField = void 0; class ClassificationField { constructor({ prediction, pageId, }) { this.value = prediction["value"]; this.confidence = prediction["confidence"]; this.pageId ?? (this.pageId = pageId); } /** * Default string representation. */ toString() { return `${this.value}`; } } exports.ClassificationField = ClassificationField;