copyWith method
Worklog
copyWith({
- UserDetails? author,
- dynamic comment,
- DateTime? created,
- String? id,
- String? issueId,
- List<
EntityProperty> ? properties, - String? self,
- DateTime? started,
- String? timeSpent,
- int? timeSpentSeconds,
- UserDetails? updateAuthor,
- DateTime? updated,
- Visibility? visibility,
Implementation
Worklog copyWith(
{UserDetails? author,
dynamic comment,
DateTime? created,
String? id,
String? issueId,
List<EntityProperty>? properties,
String? self,
DateTime? started,
String? timeSpent,
int? timeSpentSeconds,
UserDetails? updateAuthor,
DateTime? updated,
Visibility? visibility}) {
return Worklog(
author: author ?? this.author,
comment: comment ?? this.comment,
created: created ?? this.created,
id: id ?? this.id,
issueId: issueId ?? this.issueId,
properties: properties ?? this.properties,
self: self ?? this.self,
started: started ?? this.started,
timeSpent: timeSpent ?? this.timeSpent,
timeSpentSeconds: timeSpentSeconds ?? this.timeSpentSeconds,
updateAuthor: updateAuthor ?? this.updateAuthor,
updated: updated ?? this.updated,
visibility: visibility ?? this.visibility,
);
}