fromJson static method
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.forceReadMrzBeforeLocate = jsonObject["forceReadMrzBeforeLocate"];
result.parseBarcodes = jsonObject["parseBarcodes"];
result.shouldReturnPackageForReprocess =
jsonObject["shouldReturnPackageForReprocess"];
result.disablePerforationOCR = jsonObject["disablePerforationOCR"];
result.respectImageQuality = jsonObject["respectImageQuality"];
result.splitNames = jsonObject["splitNames"];
result.useFaceApi = jsonObject["useFaceApi"];
result.useAuthenticityCheck = jsonObject["useAuthenticityCheck"];
// ignore: deprecated_member_use_from_same_package
result.checkHologram = jsonObject["checkHologram"];
result.generateNumericCodes = jsonObject["generateNumericCodes"];
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.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.sessionLogFolder = jsonObject["sessionLogFolder"];
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.imageQA = ImageQA.fromJson(jsonObject["imageQA"]);
result.rfidParams = RFIDParams.fromJson(jsonObject["rfidParams"]);
result.faceApiParams = FaceApiParams.fromJson(jsonObject["faceApiParams"]);
result.backendProcessingConfig =
BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
result.authenticityParams =
AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
result.customParams = jsonObject["customParams"];
return result;
}