toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "copyright": copyright,
      "cameraSwitchEnabled": cameraSwitchEnabled,
      "closeButtonEnabled": closeButtonEnabled,
      "torchButtonEnabled": torchButtonEnabled,
      "vibrateOnSteps": vibrateOnSteps,
      "cameraPositionAndroid": cameraPositionAndroid,
      "cameraPositionIOS": cameraPositionIOS.value,
      "screenOrientation": screenOrientation.map((e) => e.value).toList(),
      "locationTrackingEnabled": locationTrackingEnabled,
      "attemptsCount": attemptsCount,
      "recordingProcess": recordingProcess.value,
      "livenessType": livenessType.value,
      "tag": tag,
      "skipStep": skipStep.map((e) => e.value).toList(),
      "metadata": metadata,
    }.clearNulls();