toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "multipageProcessing": multipageProcessing,
      "debugSaveImages": debugSaveImages,
      "debugSaveLogs": debugSaveLogs,
      "returnUncroppedImage": returnUncroppedImage,
      "uvTorchEnabled": uvTorchEnabled,
      "debugSaveCroppedImages": debugSaveCroppedImages,
      "disableFocusingCheck": disableFocusingCheck,
      "debugSaveRFIDSession": debugSaveRFIDSession,
      "doublePageSpread": doublePageSpread,
      "manualCrop": manualCrop,
      "integralImage": integralImage,
      "returnCroppedBarcode": returnCroppedBarcode,
      "checkRequiredTextFields": checkRequiredTextFields,
      "depersonalizeLog": depersonalizeLog,
      "generateDoublePageSpreadImage": generateDoublePageSpreadImage,
      "alreadyCropped": alreadyCropped,
      "matchTextFieldMask": matchTextFieldMask,
      "updateOCRValidityByGlare": updateOCRValidityByGlare,
      "noGraphics": noGraphics,
      "multiDocOnImage": multiDocOnImage,
      "forceReadMrzBeforeLocate": forceReadMrzBeforeLocate,
      "parseBarcodes": parseBarcodes,
      "shouldReturnPackageForReprocess": shouldReturnPackageForReprocess,
      "disablePerforationOCR": disablePerforationOCR,
      "respectImageQuality": respectImageQuality,
      "splitNames": splitNames,
      "useFaceApi": useFaceApi,
      "useAuthenticityCheck": useAuthenticityCheck,
      // ignore: deprecated_member_use_from_same_package
      "checkHologram": checkHologram,
      "generateNumericCodes": generateNumericCodes,
      "measureSystem": measureSystem?.value,
      "barcodeParserType": barcodeParserType,
      "perspectiveAngle": perspectiveAngle,
      "minDPI": minDPI,
      "imageDpiOutMax": imageDpiOutMax,
      "forceDocID": forceDocID,
      "forceDocFormat": forceDocFormat?.value,
      "shiftExpiryDate": shiftExpiryDate,
      "minimalHolderAge": minimalHolderAge,
      "imageOutputMaxHeight": imageOutputMaxHeight,
      "imageOutputMaxWidth": imageOutputMaxWidth,
      "processAuth": processAuth,
      "convertCase": convertCase,
      "logLevel": logLevel?.value,
      "mrzDetectMode": mrzDetectMode?.value,
      "dateFormat": dateFormat,
      "scenario": scenario?.value,
      "captureButtonScenario": captureButtonScenario?.value,
      "sessionLogFolder": sessionLogFolder,
      "timeout": timeout,
      "timeoutFromFirstDetect": timeoutFromFirstDetect,
      "timeoutFromFirstDocType": timeoutFromFirstDocType,
      "documentAreaMin": documentAreaMin,
      "timeoutLiveness": timeoutLiveness,
      "documentIDList": documentIDList,
      "barcodeTypes": barcodeTypes?.map((e) => e.value).toList(),
      "fieldTypesFilter": fieldTypesFilter?.map((e) => e.value).toList(),
      "resultTypeOutput": resultTypeOutput?.map((e) => e.value).toList(),
      "mrzFormatsFilter": mrzFormatsFilter?.map((e) => e.value).toList(),
      "documentGroupFilter":
          documentGroupFilter?.map((e) => e.value).toList(),
      "lcidIgnoreFilter": lcidIgnoreFilter?.map((e) => e.value).toList(),
      "lcidFilter": lcidFilter?.map((e) => e.value).toList(),
      "imageQA": imageQA.toJson(),
      "rfidParams": rfidParams?.toJson(),
      "faceApiParams": faceApiParams?.toJson(),
      "backendProcessingConfig": backendProcessingConfig?.toJson(),
      "authenticityParams": authenticityParams.toJson(),
      "customParams": customParams,
    }.clearNulls();