copyWithWrapped method
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));
}