# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["text"] = text;
      obj["boundingRect"] = {
        "x": boundingRect.left,
        "y": boundingRect.top,
        "width": boundingRect.width,
        "height": boundingRect.height
      };
      obj["recognitionConfidence"] = recognitionConfidence;
      return obj;
    }