# 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["extractedDocumentFormats"] =
          extractedDocumentFormats.map((it) => it.name).toList();
      obj["onlyAcceptDocuments"] = onlyAcceptDocuments;
      obj["extensions"] = extensions.name;
      obj["barcodesRegexFilter"] = barcodesRegexFilter;
      obj["minimumSizeScore"] = minimumSizeScore;
      obj["minimumTextLength"] = minimumTextLength;
      obj["maximumTextLength"] = maximumTextLength;
      obj["minimum1DBarcodesQuietZone"] = minimum1DBarcodesQuietZone;
      obj["stripCheckDigits"] = stripCheckDigits;
      obj["useIATA2OF5Checksum"] = useIATA2OF5Checksum;
      obj["useCode11Checksum"] = useCode11Checksum;
      obj["barcodeFormats"] = barcodeFormats.map((it) => it.name).toList();
      obj["msiPlesseyChecksumAlgorithm"] = msiPlesseyChecksumAlgorithm.name;
      obj["australiaPostCustomerFormat"] = australiaPostCustomerFormat.name;
      obj["lowPowerMode"] = lowPowerMode;
      obj["gs1Handling"] = gs1Handling.name;
      obj["returnBarcodeImage"] = returnBarcodeImage;
      return obj;
    }