UNPKG

mindee

Version:

Mindee Client Library for Node.js

19 lines (18 loc) 711 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectField = void 0; const inferenceFields_1 = require("./inferenceFields"); const dynamicField_1 = require("./dynamicField"); class ObjectField extends dynamicField_1.DynamicField { constructor(serverResponse, indentLevel = 0) { super(serverResponse, indentLevel); this.fields = new inferenceFields_1.InferenceFields(serverResponse["fields"], this._indentLevel + 1); } toString() { return "\n" + (this.fields ? this.fields.toString(1) : ""); } toStringFromList() { return this.fields ? this.fields.toString(2).substring(4) : ""; } } exports.ObjectField = ObjectField;