copyWith method

JiraWorkflow copyWith({
  1. String? description,
  2. String? id,
  3. bool? isEditable,
  4. String? name,
  5. WorkflowScope? scope,
  6. WorkflowLayout? startPointLayout,
  7. List<WorkflowReferenceStatus>? statuses,
  8. String? taskId,
  9. List<WorkflowTransitions>? transitions,
  10. List<ProjectIssueTypes>? usages,
  11. DocumentVersion? version,
})

Implementation

JiraWorkflow copyWith(
    {String? description,
    String? id,
    bool? isEditable,
    String? name,
    WorkflowScope? scope,
    WorkflowLayout? startPointLayout,
    List<WorkflowReferenceStatus>? statuses,
    String? taskId,
    List<WorkflowTransitions>? transitions,
    List<ProjectIssueTypes>? usages,
    DocumentVersion? version}) {
  return JiraWorkflow(
    description: description ?? this.description,
    id: id ?? this.id,
    isEditable: isEditable ?? this.isEditable,
    name: name ?? this.name,
    scope: scope ?? this.scope,
    startPointLayout: startPointLayout ?? this.startPointLayout,
    statuses: statuses ?? this.statuses,
    taskId: taskId ?? this.taskId,
    transitions: transitions ?? this.transitions,
    usages: usages ?? this.usages,
    version: version ?? this.version,
  );
}