toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "pictureOnBoundsReady": pictureOnBoundsReady,
      "showTorchButton": showTorchButton,
      "showCloseButton": showCloseButton,
      "videoCaptureMotionControl": videoCaptureMotionControl,
      "showCaptureButton": showCaptureButton,
      "showChangeFrameButton": showChangeFrameButton,
      "showSkipNextPageButton": showSkipNextPageButton,
      "useAuthenticator": useAuthenticator,
      "skipFocusingFrames": skipFocusingFrames,
      "showCameraSwitchButton": showCameraSwitchButton,
      "displayMetadata": displayMetadata,
      "isZoomEnabled": isZoomEnabled,
      "isCameraTorchCheckDisabled": isCameraTorchCheckDisabled,
      "recordScanningProcess": recordScanningProcess,
      "manualMultipageMode": manualMultipageMode,
      "singleResult": singleResult,
      "showCaptureButtonDelayFromDetect": showCaptureButtonDelayFromDetect,
      "showCaptureButtonDelayFromStart": showCaptureButtonDelayFromStart,
      "rfidTimeout": rfidTimeout,
      "forcePagesCount": forcePagesCount,
      "orientation": orientation?.value,
      "captureMode": captureMode?.value,
      "cameraMode": cameraMode?.value,
      "cameraPositionIOS": cameraPositionIOS?.value,
      "cameraFrame": cameraFrame?.value,
      "btDeviceName": btDeviceName,
      "zoomFactor": zoomFactor,
      "exposure": exposure,
      "excludedCamera2Models": excludedCamera2Models,
      "cameraSize": cameraResolutionAndroid?.toJson(),
      "videoSessionPreset": cameraResolutionIOS?.value,
    }.clearNulls();