copyWith method

WorkflowTransitions copyWith({
  1. List<WorkflowRuleConfiguration>? actions,
  2. ConditionGroupConfiguration? conditions,
  3. String? customIssueEventId,
  4. String? description,
  5. List<WorkflowStatusAndPort>? from,
  6. String? id,
  7. String? name,
  8. Map<String, dynamic>? properties,
  9. WorkflowStatusAndPort? to,
  10. WorkflowRuleConfiguration? transitionScreen,
  11. List<WorkflowTrigger>? triggers,
  12. WorkflowTransitionsType? type,
  13. List<WorkflowRuleConfiguration>? validators,
})

Implementation

WorkflowTransitions copyWith(
    {List<WorkflowRuleConfiguration>? actions,
    ConditionGroupConfiguration? conditions,
    String? customIssueEventId,
    String? description,
    List<WorkflowStatusAndPort>? from,
    String? id,
    String? name,
    Map<String, dynamic>? properties,
    WorkflowStatusAndPort? to,
    WorkflowRuleConfiguration? transitionScreen,
    List<WorkflowTrigger>? triggers,
    WorkflowTransitionsType? type,
    List<WorkflowRuleConfiguration>? validators}) {
  return WorkflowTransitions(
    actions: actions ?? this.actions,
    conditions: conditions ?? this.conditions,
    customIssueEventId: customIssueEventId ?? this.customIssueEventId,
    description: description ?? this.description,
    from: from ?? this.from,
    id: id ?? this.id,
    name: name ?? this.name,
    properties: properties ?? this.properties,
    to: to ?? this.to,
    transitionScreen: transitionScreen ?? this.transitionScreen,
    triggers: triggers ?? this.triggers,
    type: type ?? this.type,
    validators: validators ?? this.validators,
  );
}