fromJson static method

ProcessParams fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static ProcessParams fromJson(jsonObject) {
  var result = ProcessParams();
  result.testSetters = {};

  result.multipageProcessing = jsonObject["multipageProcessing"];
  result.logs = jsonObject["logs"];
  result.debugSaveImages = jsonObject["debugSaveImages"];
  result.debugSaveLogs = jsonObject["debugSaveLogs"];
  result.returnUncroppedImage = jsonObject["returnUncroppedImage"];
  result.uvTorchEnabled = jsonObject["uvTorchEnabled"];
  result.debugSaveCroppedImages = jsonObject["debugSaveCroppedImages"];
  result.disableFocusingCheck = jsonObject["disableFocusingCheck"];
  result.debugSaveRFIDSession = jsonObject["debugSaveRFIDSession"];
  result.doublePageSpread = jsonObject["doublePageSpread"];
  result.manualCrop = jsonObject["manualCrop"];
  result.integralImage = jsonObject["integralImage"];
  result.returnCroppedBarcode = jsonObject["returnCroppedBarcode"];
  result.checkRequiredTextFields = jsonObject["checkRequiredTextFields"];
  result.depersonalizeLog = jsonObject["depersonalizeLog"];
  result.generateDoublePageSpreadImage = jsonObject["generateDoublePageSpreadImage"];
  result.alreadyCropped = jsonObject["alreadyCropped"];
  result.matchTextFieldMask = jsonObject["matchTextFieldMask"];
  result.updateOCRValidityByGlare = jsonObject["updateOCRValidityByGlare"];
  result.noGraphics = jsonObject["noGraphics"];
  result.multiDocOnImage = jsonObject["multiDocOnImage"];
  result.parseBarcodes = jsonObject["parseBarcodes"];
  result.shouldReturnPackageForReprocess = jsonObject["shouldReturnPackageForReprocess"];
  result.disablePerforationOCR = jsonObject["disablePerforationOCR"];
  result.respectImageQuality = jsonObject["respectImageQuality"];
  result.strictImageQuality = jsonObject["strictImageQuality"];
  result.splitNames = jsonObject["splitNames"];
  result.useFaceApi = jsonObject["useFaceApi"];
  result.useAuthenticityCheck = jsonObject["useAuthenticityCheck"];
  result.checkHologram = jsonObject["checkHologram"];
  result.generateNumericCodes = jsonObject["generateNumericCodes"];
  result.strictBarcodeDigitalSignatureCheck = jsonObject["strictBarcodeDigitalSignatureCheck"];
  result.selectLongestNames = jsonObject["selectLongestNames"];
  result.generateDTCVC = jsonObject["generateDTCVC"];
  result.strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
  result.generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
  result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
  result.strictSecurityChecks = jsonObject["strictSecurityChecks"];
  result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"];
  result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"];
  result.strictExpiryDate = jsonObject["strictExpiryDate"];
  result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"];
  result.checkVDS = jsonObject["checkVDS"];
  result.strictAgeCheck = jsonObject["strictAgeCheck"];

  result.measureSystem = MeasureSystem.getByValue(jsonObject["measureSystem"]);
  result.barcodeParserType = jsonObject["barcodeParserType"];
  result.perspectiveAngle = jsonObject["perspectiveAngle"];
  result.minDPI = jsonObject["minDPI"];
  result.imageDpiOutMax = jsonObject["imageDpiOutMax"];
  result.forceDocID = jsonObject["forceDocID"];
  result.pdfPagesLimit = jsonObject["pdfPagesLimit"];
  result.forceDocFormat = DocFormat.getByValue(jsonObject["forceDocFormat"]);
  result.shiftExpiryDate = jsonObject["shiftExpiryDate"];
  result.minimalHolderAge = jsonObject["minimalHolderAge"];
  result.imageOutputMaxHeight = jsonObject["imageOutputMaxHeight"];
  result.imageOutputMaxWidth = jsonObject["imageOutputMaxWidth"];
  result.processAuth = jsonObject["processAuth"];
  result.convertCase = jsonObject["convertCase"];
  result.logLevel = LogLevel.getByValue(jsonObject["logLevel"]);
  result.mrzDetectMode = MrzDetectionModes.getByValue(jsonObject["mrzDetectMode"]);

  result.dateFormat = jsonObject["dateFormat"];
  result.scenario = Scenario.getByValue(jsonObject["scenario"]);
  result.captureButtonScenario = Scenario.getByValue(jsonObject["captureButtonScenario"]);

  result.timeout = _toDouble(jsonObject["timeout"]);
  result.timeoutFromFirstDetect = _toDouble(jsonObject["timeoutFromFirstDetect"]);
  result.timeoutFromFirstDocType = _toDouble(jsonObject["timeoutFromFirstDocType"]);
  result.documentAreaMin = _toDouble(jsonObject["documentAreaMin"]);
  result.timeoutLiveness = _toDouble(jsonObject["timeoutLiveness"]);

  result.documentIDList = _intListFrom(jsonObject["documentIDList"]);
  result.barcodeTypes = BarcodeType.fromIntList(jsonObject["barcodeTypes"]);

  result.fieldTypesFilter = FieldType.fromIntList(jsonObject["fieldTypesFilter"]);
  result.resultTypeOutput = ResultType.fromIntList(jsonObject["resultTypeOutput"]);
  result.mrzFormatsFilter = MRZFormat.fromStringList(jsonObject["mrzFormatsFilter"]);
  result.documentGroupFilter = DocType.fromIntList(jsonObject["documentGroupFilter"]);
  result.lcidIgnoreFilter = LCID.fromIntList(jsonObject["lcidIgnoreFilter"]);
  result.lcidFilter = LCID.fromIntList(jsonObject["lcidFilter"]);
  result.fieldTypesIgnoreFilter = FieldType.fromIntList(jsonObject["fieldTypesIgnoreFilter"]);

  result.imageQA = ImageQA.fromJson(jsonObject["imageQA"]);
  result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
  result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);
  result.backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
  result.bsiTr03135 = Bsi.fromJson(jsonObject["bsiTr03135"]);
  result.authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);

  result.customParams = jsonObject["customParams"];

  return result;
}