fromJson method

dynamic fromJson(
  1. Map<String, dynamic> jsonObject
)

Allows you to deserialize object.

Implementation

fromJson(Map<String, dynamic> jsonObject) {
  _multipageProcessing = jsonObject["multipageProcessing"];
  _logs = jsonObject["logs"];
  _debugSaveImages = jsonObject["debugSaveImages"];
  _debugSaveLogs = jsonObject["debugSaveLogs"];
  _returnUncroppedImage = jsonObject["returnUncroppedImage"];
  _uvTorchEnabled = jsonObject["uvTorchEnabled"];
  _debugSaveCroppedImages = jsonObject["debugSaveCroppedImages"];
  _disableFocusingCheck = jsonObject["disableFocusingCheck"];
  _debugSaveRFIDSession = jsonObject["debugSaveRFIDSession"];
  _doublePageSpread = jsonObject["doublePageSpread"];
  _manualCrop = jsonObject["manualCrop"];
  _integralImage = jsonObject["integralImage"];
  _returnCroppedBarcode = jsonObject["returnCroppedBarcode"];
  _checkHologram = jsonObject["checkHologram"];
  _checkRequiredTextFields = jsonObject["checkRequiredTextFields"];
  _depersonalizeLog = jsonObject["depersonalizeLog"];
  _generateDoublePageSpreadImage =
      jsonObject["generateDoublePageSpreadImage"];
  _alreadyCropped = jsonObject["alreadyCropped"];
  _matchTextFieldMask = jsonObject["matchTextFieldMask"];
  _fastDocDetect = jsonObject["fastDocDetect"];
  _updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"];
  _noGraphics = jsonObject["noGraphics"];
  _multiDocOnImage = jsonObject["multiDocOnImage"];
  _forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"];
  _parseBarcodes = jsonObject["parseBarcodes"];
  _shouldReturnPackageForReprocess =
      jsonObject["shouldReturnPackageForReprocess"];
  _disablePerforationOCR = jsonObject["disablePerforationOCR"];
  _respectImageQuality = jsonObject["respectImageQuality"];
  _splitNames = jsonObject["splitNames"];
  _doDetectCan = jsonObject["doDetectCan"];
  _useFaceApi = jsonObject["useFaceApi"];

  _measureSystem = MeasureSystem.getByValue(jsonObject["measureSystem"]);
  _barcodeParserType = jsonObject["barcodeParserType"];
  _perspectiveAngle = jsonObject["perspectiveAngle"];
  _minDPI = jsonObject["minDPI"];
  _imageDpiOutMax = jsonObject["imageDpiOutMax"];
  _forceDocID = DocFormat.getByValue(jsonObject["forceDocID"]);
  _forceDocFormat = jsonObject["forceDocFormat"];
  _shiftExpiryDate = jsonObject["shiftExpiryDate"];
  _minimalHolderAge = jsonObject["minimalHolderAge"];
  _imageOutputMaxHeight = jsonObject["imageOutputMaxHeight"];
  _imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"];
  _processAuth = jsonObject["processAuth"];
  _convertCase = jsonObject["convertCase"];

  _dateFormat = jsonObject["dateFormat"];
  _scenario = Scenario.getByValue(jsonObject["scenario"]);
  _captureButtonScenario = jsonObject["captureButtonScenario"];
  _sessionLogFolder = jsonObject["sessionLogFolder"];

  _timeout = _toDouble(jsonObject["timeout"]);
  _timeoutFromFirstDetect = _toDouble(jsonObject["timeoutFromFirstDetect"]);
  _timeoutFromFirstDocType = _toDouble(jsonObject["timeoutFromFirstDocType"]);
  _documentAreaMin = _toDouble(jsonObject["documentAreaMin"]);

  _documentIDList = jsonObject["documentIDList"];
  _barcodeTypes = BarcodeType.fromIntList(jsonObject["barcodeTypes"]);

  _fieldTypesFilter =
      VisualFieldType.fromIntList(jsonObject["fieldTypesFilter"]);
  _resultTypeOutput = ResultType.fromIntList(jsonObject["resultTypeOutput"]);
  _mrzFormatsFilter =
      MRZFormat.fromStringList(jsonObject["mrzFormatsFilter"]);
  _documentGroupFilter =
      DocType.fromIntList(jsonObject["documentGroupFilter"]);

  _imageQA = ImageQA.fromJson(jsonObject["imageQA"])!;
  _rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
  _faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);

  _customParams = jsonObject["customParams"];

  return this;
}