# 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["documentFound"] = documentFound;
      obj["quality"] = (quality != null ? quality!.name : null);
      obj["orientation"] = (orientation != null ? orientation! : null);
      obj["cumulativeQualityHistogram"] =
          cumulativeQualityHistogram.map((it) => it).toList();
      if (config.serializeImages) {
        obj["qualityHeatmap"] =
            (qualityHeatmap != null ? qualityHeatmap!.toJson() : null);
      }
      return obj;
    }