copyWith method
- int? id,
- DateTime? timestamp,
- String? contents,
- bool? authorIsDealer,
- DealerUserDTO? dealerAuthor,
Implementation
MaintenanceNoteDTO copyWith(
{int? id,
DateTime? timestamp,
String? contents,
bool? authorIsDealer,
DealerUserDTO? dealerAuthor}) {
return MaintenanceNoteDTO(
id: id ?? this.id,
timestamp: timestamp ?? this.timestamp,
contents: contents ?? this.contents,
authorIsDealer: authorIsDealer ?? this.authorIsDealer,
dealerAuthor: dealerAuthor ?? this.dealerAuthor);
}