# toJson method

1. @override

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})
override

## Implementation

    @override
    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["_type"] = "Word";
      obj["text"] = text;
      obj["confidence"] = confidence;
      obj["roi"] = roi.map((it) => {"x": it.x, "y": it.y}).toList();
      obj["glyphs"] = glyphs.map((it) => it.toJson(config: config)).toList();
      return obj;
    }