Workflow constructor

Workflow({
  1. WorkflowLinks? links,
  2. DateTime? createdAt,
  3. String? description,
  4. WorkflowState? end,
  5. String? id,
  6. required String name,
  7. WorkflowState? start,
  8. List<WorkflowState>? states = const [],
  9. List<WorkflowTransition>? transitions = const [],
  10. String? type,
  11. DateTime? updatedAt,
})

Returns a new Workflow instance.

Implementation

Workflow({
  this.links,
  this.createdAt,
  this.description,
  this.end,
  this.id,
  required this.name,
  this.start,
  this.states = const [],
  this.transitions = const [],
  this.type,
  this.updatedAt,
});