# 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["barcodeFormatConfigurations"] = barcodeFormatConfigurations
          .map((it) => it.toJson(config: config))
          .toList();
      obj["extractedDocumentFormats"] =
          extractedDocumentFormats.map((it) => it.name).toList();
      obj["onlyAcceptDocuments"] = onlyAcceptDocuments;
      obj["returnBarcodeImage"] = returnBarcodeImage;
      obj["engineMode"] = engineMode.name;
      obj["accumulationConfig"] = accumulationConfig.toJson(config: config);
      obj["optimizedForOverlays"] = optimizedForOverlays;
      return obj;
    }