toJson method

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

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "copyright": copyright,
      "cameraSwitchEnabled": cameraSwitchEnabled,
      "closeButtonEnabled": closeButtonEnabled,
      "torchButtonEnabled": torchButtonEnabled,
      "vibrateOnSteps": vibrateOnSteps,
      "detectOcclusion": detectOcclusion,
      "cameraPositionAndroid": cameraPositionAndroid,
      "cameraPositionIOS": cameraPositionIOS.value,
      "screenOrientation": screenOrientation.map((e) => e.value).toList(),
      "timeout": timeout,
      "holdStillDuration": holdStillDuration,
    }.clearNulls();