toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of ReaderParams.

Implementation

Map<String, dynamic> toJson() {
  return {
    'Type': type,
    'Types': types,
    'ChecksumValidation': checksumValidation,
    'DetectEncoding': detectEncoding,
    'Preset': preset,
    'RectX': rectX,
    'RectY': rectY,
    'RectWidth': rectWidth,
    'RectHeight': rectHeight,
    'StripFNC': stripFNC,
    'Timeout': timeout,
    'MedianSmoothingWindowSize': medianSmoothingWindowSize,
    'AllowMedianSmoothing': allowMedianSmoothing,
    'AllowComplexBackground': allowComplexBackground,
    'AllowDatamatrixIndustrialBarcodes': allowDatamatrixIndustrialBarcodes,
    'AllowDecreasedImage': allowDecreasedImage,
    'AllowDetectScanGap': allowDetectScanGap,
    'AllowIncorrectBarcodes': allowIncorrectBarcodes,
    'AllowInvertImage': allowInvertImage,
    'AllowMicroWhiteSpotsRemoving': allowMicroWhiteSpotsRemoving,
    'AllowOneDFastBarcodesDetector': allowOneDFastBarcodesDetector,
    'AllowOneDWipedBarsRestoration': allowOneDWipedBarsRestoration,
    'AllowQRMicroQrRestoration': allowQRMicroQrRestoration,
    'AllowRegularImage': allowRegularImage,
    'AllowSaltAndPepperFiltering': allowSaltAndPepperFiltering,
    'AllowWhiteSpotsRemoving': allowWhiteSpotsRemoving,
    'CheckMore1DVariants': checkMore1DVariants,
    'FastScanOnly': fastScanOnly,
    'AllowAdditionalRestorations': allowAdditionalRestorations,
    'RegionLikelihoodThresholdPercent': regionLikelihoodThresholdPercent,
    'ScanWindowSizes': scanWindowSizes,
    'Similarity': similarity,
    'SkipDiagonalSearch': skipDiagonalSearch,
    'ReadTinyBarcodes': readTinyBarcodes,
    'AustralianPostEncodingTable': australianPostEncodingTable,
    'IgnoreEndingFillingPatternsForCTable':
        ignoreEndingFillingPatternsForCTable
  };
}