copyWith method

Worklog copyWith({
  1. UserDetails? author,
  2. dynamic comment,
  3. DateTime? created,
  4. String? id,
  5. String? issueId,
  6. List<EntityProperty>? properties,
  7. String? self,
  8. DateTime? started,
  9. String? timeSpent,
  10. int? timeSpentSeconds,
  11. UserDetails? updateAuthor,
  12. DateTime? updated,
  13. 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,
  );
}