# 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["qualityThresholds"] =
          qualityThresholds.map((it) => it.toJson(config: config)).toList();
      obj["qualityIndices"] = qualityIndices.map((it) => it.name).toList();
      obj["detectOrientation"] = detectOrientation;
      obj["inspectSmallText"] = inspectSmallText;
      obj["maxImageSize"] = maxImageSize;
      obj["minEstimatedNumberOfSymbolsForDocument"] =
          minEstimatedNumberOfSymbolsForDocument;
      obj["minProcessedFraction"] = minProcessedFraction;
      obj["maxProcessedFraction"] = maxProcessedFraction;
      obj["earlyStopIfNSymbolsFound"] = earlyStopIfNSymbolsFound;
      obj["tileSize"] = tileSize;
      obj["returnQualityHeatmap"] = returnQualityHeatmap;
      return obj;
    }