copyWithWrapped method

ExerciseScheduleV2Body copyWithWrapped({
  1. Wrapped<ExerciseScheduleFrequencyV2?>? frequency,
  2. Wrapped<DateTime?>? nextStartTimestamp,
  3. Wrapped<ExerciseScheduleModeV2?>? mode,
  4. Wrapped<int?>? durationMinutes,
})

Implementation

ExerciseScheduleV2Body copyWithWrapped(
    {Wrapped<enums.ExerciseScheduleFrequencyV2?>? frequency,
    Wrapped<DateTime?>? nextStartTimestamp,
    Wrapped<enums.ExerciseScheduleModeV2?>? mode,
    Wrapped<int?>? durationMinutes}) {
  return ExerciseScheduleV2Body(
      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));
}