# MrzScannerConfiguration.fromJson constructor

MrzScannerConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MrzScannerConfiguration.fromJson(Map<String, dynamic> json) =>
        MrzScannerConfiguration(
          frameAccumulationConfiguration: json
                  .containsKey("frameAccumulationConfiguration")
              ? AccumulatedResultsVerifierConfiguration.fromJson(
                  json["frameAccumulationConfiguration"] as Map<String, dynamic>)
              : AccumulatedResultsVerifierConfiguration(),
          enableDetection: json.containsKey("enableDetection")
              ? (json["enableDetection"] as bool)
              : true,
          incompleteResultHandling: json.containsKey("incompleteResultHandling")
              ? MrzIncompleteResultHandling.values
                  .byName(json["incompleteResultHandling"] as String)
              : MrzIncompleteResultHandling.REJECT,
          returnCrops: json.containsKey("returnCrops")
              ? (json["returnCrops"] as bool)
              : false,
        );