toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> obj = <String, dynamic>{};
obj["detectorType"] = detectorType.name;
if (barcodeFormatConfigurations != null) {
obj["barcodeFormatConfigurations"] =
barcodeFormatConfigurations!.map((e) => e.toJson()).toList();
}
if (acceptedDocumentFormats != null) {
obj["acceptedDocumentFormats"] =
acceptedDocumentFormats!.map((e) => e.name).toList();
}
if (engineMode != null) {
obj["engineMode"] = engineMode!.name;
}
if (accumulationConfig != null) {
obj["accumulationConfig"] = accumulationConfig!.toJson();
}
if (returnBarcodeImage != null) {
obj["returnBarcodeImage"] = returnBarcodeImage;
}
if (onlyAcceptDocuments != null) {
obj["onlyAcceptDocuments"] = onlyAcceptDocuments;
}
return obj;
}