# DocumentScannerConfiguration.fromJson constructor

DocumentScannerConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory DocumentScannerConfiguration.fromJson(Map<String, dynamic> json) =>
        DocumentScannerConfiguration(
          engineMode: json.containsKey("engineMode")
              ? DocumentScannerEngineMode.values
                  .byName(json["engineMode"] as String)
              : DocumentScannerEngineMode.ML,
          parameters: json.containsKey("parameters")
              ? DocumentScannerParameters.fromJson(
                  json["parameters"] as Map<String, dynamic>)
              : DocumentScannerParameters(),
        );