# TextPatternScannerConfiguration.fromJson constructor

TextPatternScannerConfiguration.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory TextPatternScannerConfiguration.fromJson(Map<String, dynamic> json) =>
        TextPatternScannerConfiguration(
          ocrResolutionLimit: json.containsKey("ocrResolutionLimit")
              ? (json["ocrResolutionLimit"] as int)
              : 0,
          maximumNumberOfAccumulatedFrames:
              json.containsKey("maximumNumberOfAccumulatedFrames")
                  ? (json["maximumNumberOfAccumulatedFrames"] as int)
                  : 3,
          minimumNumberOfRequiredFramesWithEqualScanningResult: json.containsKey(
                  "minimumNumberOfRequiredFramesWithEqualScanningResult")
              ? (json["minimumNumberOfRequiredFramesWithEqualScanningResult"]
                  as int)
              : 2,
          validator: json.containsKey("validator")
              ? ContentValidator.fromJson(
                  json["validator"] as Map<String, dynamic>)
              : DefaultContentValidator(),
        );