copyWithWrapped method

ExerciseScheduleV3Body copyWithWrapped({
  1. Wrapped<ExerciseScheduleFrequencyDTO?>? frequency,
  2. Wrapped<DateTime?>? nextStartTimestamp,
  3. Wrapped<ExerciseScheduleModeDTO?>? mode,
  4. Wrapped<int?>? durationMinutes,
})

Implementation

ExerciseScheduleV3Body copyWithWrapped(
    {Wrapped<enums.ExerciseScheduleFrequencyDTO?>? frequency,
    Wrapped<DateTime?>? nextStartTimestamp,
    Wrapped<enums.ExerciseScheduleModeDTO?>? mode,
    Wrapped<int?>? durationMinutes}) {
  return ExerciseScheduleV3Body(
      frequency: (frequency != null ? frequency.value : this.frequency),
      nextStartTimestamp: (nextStartTimestamp != null
          ? nextStartTimestamp.value
          : this.nextStartTimestamp),
      mode: (mode != null ? mode.value : this.mode),
      durationMinutes: (durationMinutes != null
          ? durationMinutes.value
          : this.durationMinutes));
}