copyWith method

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

Implementation

TransitionUpdateDTO copyWith(
    {List<WorkflowRuleConfiguration>? actions,
    ConditionGroupUpdate? conditions,
    String? customIssueEventId,
    String? description,
    List<StatusReferenceAndPort>? from,
    String? id,
    String? name,
    Map<String, dynamic>? properties,
    StatusReferenceAndPort? to,
    WorkflowRuleConfiguration? transitionScreen,
    List<WorkflowTrigger>? triggers,
    TransitionUpdateDTOType? type,
    List<WorkflowRuleConfiguration>? validators}) {
  return TransitionUpdateDTO(
    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,
  );
}