copyWith method

SlaInformationDTO copyWith({
  1. SelfLinkDTO? links,
  2. List<SlaInformationCompletedCycleDTO>? completedCycles,
  3. String? id,
  4. String? name,
  5. SlaInformationOngoingCycleDTO? ongoingCycle,
  6. String? slaDisplayFormat,
})

Implementation

SlaInformationDTO copyWith(
    {SelfLinkDTO? links,
    List<SlaInformationCompletedCycleDTO>? completedCycles,
    String? id,
    String? name,
    SlaInformationOngoingCycleDTO? ongoingCycle,
    String? slaDisplayFormat}) {
  return SlaInformationDTO(
    links: links ?? this.links,
    completedCycles: completedCycles ?? this.completedCycles,
    id: id ?? this.id,
    name: name ?? this.name,
    ongoingCycle: ongoingCycle ?? this.ongoingCycle,
    slaDisplayFormat: slaDisplayFormat ?? this.slaDisplayFormat,
  );
}