copyWith method

SlaInformationOngoingCycleDTO copyWith({
  1. DateDTO? breachTime,
  2. bool? breached,
  3. DurationDTO? elapsedTime,
  4. DurationDTO? goalDuration,
  5. bool? paused,
  6. DurationDTO? remainingTime,
  7. DateDTO? startTime,
  8. bool? withinCalendarHours,
})

Implementation

SlaInformationOngoingCycleDTO copyWith(
    {DateDTO? breachTime,
    bool? breached,
    DurationDTO? elapsedTime,
    DurationDTO? goalDuration,
    bool? paused,
    DurationDTO? remainingTime,
    DateDTO? startTime,
    bool? withinCalendarHours}) {
  return SlaInformationOngoingCycleDTO(
    breachTime: breachTime ?? this.breachTime,
    breached: breached ?? this.breached,
    elapsedTime: elapsedTime ?? this.elapsedTime,
    goalDuration: goalDuration ?? this.goalDuration,
    paused: paused ?? this.paused,
    remainingTime: remainingTime ?? this.remainingTime,
    startTime: startTime ?? this.startTime,
    withinCalendarHours: withinCalendarHours ?? this.withinCalendarHours,
  );
}