copyWith method

WorkflowScheme copyWith({
  1. String? defaultWorkflow,
  2. String? description,
  3. bool? draft,
  4. int? id,
  5. Map<String, dynamic>? issueTypeMappings,
  6. Map<String, dynamic>? issueTypes,
  7. String? lastModified,
  8. User? lastModifiedUser,
  9. String? name,
  10. String? originalDefaultWorkflow,
  11. Map<String, dynamic>? originalIssueTypeMappings,
  12. String? self,
  13. bool? updateDraftIfNeeded,
})

Implementation

WorkflowScheme copyWith(
    {String? defaultWorkflow,
    String? description,
    bool? draft,
    int? id,
    Map<String, dynamic>? issueTypeMappings,
    Map<String, dynamic>? issueTypes,
    String? lastModified,
    User? lastModifiedUser,
    String? name,
    String? originalDefaultWorkflow,
    Map<String, dynamic>? originalIssueTypeMappings,
    String? self,
    bool? updateDraftIfNeeded}) {
  return WorkflowScheme(
    defaultWorkflow: defaultWorkflow ?? this.defaultWorkflow,
    description: description ?? this.description,
    draft: draft ?? this.draft,
    id: id ?? this.id,
    issueTypeMappings: issueTypeMappings ?? this.issueTypeMappings,
    issueTypes: issueTypes ?? this.issueTypes,
    lastModified: lastModified ?? this.lastModified,
    lastModifiedUser: lastModifiedUser ?? this.lastModifiedUser,
    name: name ?? this.name,
    originalDefaultWorkflow:
        originalDefaultWorkflow ?? this.originalDefaultWorkflow,
    originalIssueTypeMappings:
        originalIssueTypeMappings ?? this.originalIssueTypeMappings,
    self: self ?? this.self,
    updateDraftIfNeeded: updateDraftIfNeeded ?? this.updateDraftIfNeeded,
  );
}