toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  if (enableIntelligenceRest != null) map['enableIntelligenceRest'] = enableIntelligenceRest;
  if (allowAudioMixing != null) map['allowAudioMixing'] = allowAudioMixing;
  if (showExternalAudioControl != null) map['showExternalAudioControl'] = showExternalAudioControl;
  if (showRowingPhoneCalibration != null) map['showRowingPhoneCalibration'] = showRowingPhoneCalibration;
  if (enableWatchCompanion != null) map['enableWatchCompanion'] = enableWatchCompanion;
  if (accuratePoseEstimation != null) map['accuratePoseEstimation'] = accuratePoseEstimation;
  if (skeletonConfig != null) map['skeletonConfig'] = skeletonConfig!.toJson();
  if (pauseTypes != null) map['pauseTypes'] = pauseTypes!.map((t) => t.name).toList();
  if (instructionVideoConfig != null) map['instructionVideoConfig'] = instructionVideoConfig!.toJson();
  return map;
}