copyWithWrapped method

IncidentUpdate copyWithWrapped({
  1. Wrapped<String?>? description,
  2. Wrapped<IncidentUpdateStatus?>? status,
  3. Wrapped<DateTime?>? updatedDate,
})

Implementation

IncidentUpdate copyWithWrapped(
    {Wrapped<String?>? description,
    Wrapped<enums.IncidentUpdateStatus?>? status,
    Wrapped<DateTime?>? updatedDate}) {
  return IncidentUpdate(
      description:
          (description != null ? description.value : this.description),
      status: (status != null ? status.value : this.status),
      updatedDate:
          (updatedDate != null ? updatedDate.value : this.updatedDate));
}