ReaderParams.fromJson constructor
Creates a ReaderParams instance from a JSON representation.
Implementation
ReaderParams.fromJson(Map<String, dynamic> json) {
type = DecodeBarcodeType.fromJson(json['type']);
types = DecodeBarcodeType.listFromJson(json['types']);
checksumValidation =
ChecksumValidation.fromJson(json['checksumValidation']);
detectEncoding = json['detectEncoding'];
preset = PresetType.fromJson(json['preset']);
rectX = json['rectX'];
rectY = json['rectY'];
rectWidth = json['rectWidth'];
rectHeight = json['rectHeight'];
stripFNC = json['stripFNC'];
timeout = json['timeout'];
medianSmoothingWindowSize = json['medianSmoothingWindowSize'];
allowMedianSmoothing = json['allowMedianSmoothing'];
allowComplexBackground = json['allowComplexBackground'];
allowDatamatrixIndustrialBarcodes =
json['allowDatamatrixIndustrialBarcodes'];
allowDecreasedImage = json['allowDecreasedImage'];
allowDetectScanGap = json['allowDetectScanGap'];
allowIncorrectBarcodes = json['allowIncorrectBarcodes'];
allowInvertImage = json['allowInvertImage'];
allowMicroWhiteSpotsRemoving = json['allowMicroWhiteSpotsRemoving'];
allowOneDFastBarcodesDetector = json['allowOneDFastBarcodesDetector'];
allowOneDWipedBarsRestoration = json['allowOneDWipedBarsRestoration'];
allowQRMicroQrRestoration = json['allowQRMicroQrRestoration'];
allowRegularImage = json['allowRegularImage'];
allowSaltAndPepperFiltering = json['allowSaltAndPepperFiltering'];
allowWhiteSpotsRemoving = json['allowWhiteSpotsRemoving'];
checkMore1DVariants = json['checkMore1DVariants'];
fastScanOnly = json['fastScanOnly'];
allowAdditionalRestorations = json['allowAdditionalRestorations'];
regionLikelihoodThresholdPercent =
json['regionLikelihoodThresholdPercent']?.toDouble();
scanWindowSizes =
(json['scanWindowSizes'] as List).map((item) => item as int).toList();
similarity = json['similarity']?.toDouble();
skipDiagonalSearch = json['skipDiagonalSearch'];
readTinyBarcodes = json['readTinyBarcodes'];
australianPostEncodingTable = CustomerInformationInterpretingType.fromJson(
json['australianPostEncodingTable']);
ignoreEndingFillingPatternsForCTable =
json['ignoreEndingFillingPatternsForCTable'];
}