# 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["status"] = status.name;
      obj["detectionScores"] = detectionScores.toJson(config: config);
      obj["points"] = points.map((it) => {"x": it.x, "y": it.y}).toList();
      obj["horizontalLines"] =
          horizontalLines.map((it) => it.toJson(config: config)).toList();
      obj["verticalLines"] =
          verticalLines.map((it) => it.toJson(config: config)).toList();
      obj["pointsNormalized"] =
          pointsNormalized.map((it) => {"x": it.x, "y": it.y}).toList();
      obj["horizontalLinesNormalized"] = horizontalLinesNormalized
          .map((it) => it.toJson(config: config))
          .toList();
      obj["verticalLinesNormalized"] =
          verticalLinesNormalized.map((it) => it.toJson(config: config)).toList();
      obj["aspectRatio"] = aspectRatio;
      obj["averageBrightness"] = averageBrightness;
      return obj;
    }