copyWith method
SlaInformationOngoingCycleDTO
copyWith({
- DateDTO? breachTime,
- bool? breached,
- DurationDTO? elapsedTime,
- DurationDTO? goalDuration,
- bool? paused,
- DurationDTO? remainingTime,
- DateDTO? startTime,
- 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,
);
}