copyWithWrapped method

MaintenanceNoteDTO copyWithWrapped({
  1. Wrapped<int?>? id,
  2. Wrapped<DateTime?>? timestamp,
  3. Wrapped<String?>? contents,
  4. Wrapped<bool?>? authorIsDealer,
  5. Wrapped<DealerUserDTO?>? dealerAuthor,
})

Implementation

MaintenanceNoteDTO copyWithWrapped(
    {Wrapped<int?>? id,
    Wrapped<DateTime?>? timestamp,
    Wrapped<String?>? contents,
    Wrapped<bool?>? authorIsDealer,
    Wrapped<DealerUserDTO?>? dealerAuthor}) {
  return MaintenanceNoteDTO(
      id: (id != null ? id.value : this.id),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      contents: (contents != null ? contents.value : this.contents),
      authorIsDealer: (authorIsDealer != null
          ? authorIsDealer.value
          : this.authorIsDealer),
      dealerAuthor:
          (dealerAuthor != null ? dealerAuthor.value : this.dealerAuthor));
}