toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => _withoutNulls({
  'name': prettyName,
  'prettyName': prettyName,
  'totalSeconds': totalSeconds,
  'videoInstruction': videoInstruction,
  'exerciseIntro': exerciseIntro,
  'uiElements': uiElements?.map((e) => e.name).toList(),
  'detector': detector,
  'exerciseClosure': exerciseClosure,
  'closureFailedSound': closureFailedSound,
  'summaryTitle': summaryTitle,
  'summarySubTitle': summarySubTitle,
  'summaryMainMetricTitle': summaryMainMetricTitle,
  'summaryMainMetricSubTitle': summaryMainMetricSubTitle,
  'side': side,
  'shortIntro': shortIntro,
  'quickMotionParams': quickMotionParams?.toJson(),
  'rowingFeedbackLevel': rowingFeedbackLevel?.nativeValue,
  'phonePosition': phonePosition?.name,
  'guidanceMode': guidanceMode,
  'enableGuidanceModeSuggestion': enableGuidanceModeSuggestion,
  'useWideAngleCamera': useWideAngleCamera,
  'playPreExerciseCountdown': playPreExerciseCountdown,
  'playRepMilestoneVoice': playRepMilestoneVoice,
  'repMilestoneInterval': repMilestoneInterval,
  'playSoundOnEachRep': playSoundOnEachRep,
  'playTargetRepsCompletionVoice': playTargetRepsCompletionVoice,
  'intentVoiceFeedbackEnabled': intentVoiceFeedbackEnabled,
  'adaptiveRomFeedbackEnabled': adaptiveRomFeedbackEnabled,
  'adaptiveRomWarmupReps': adaptiveRomWarmupReps,
  'enableSmallBodyPartFocus': enableSmallBodyPartFocus,
  'internalInsightsKey': internalInsightsKey,
  'guidanceVideoSegments': guidanceVideoSegments?.map(
    (key, value) => MapEntry(key, value.toJson()),
  ),
  'stretchSetConfig': stretchSetConfig?.toJson(),
  'positionRepConfig': positionRepConfig?.toJson(),
  'showTargetProgress': showTargetProgress,
  'targetRepsTimerDisplayMode': targetRepsTimerDisplayMode,
  'displayContext': displayContext?.toJson(),
  'scoringParams': scoringParams?.toJson(),
});