Workflow constructor

Workflow({
  1. DateTime? created,
  2. required String description,
  3. bool? hasDraftWorkflow,
  4. required PublishedWorkflowId id,
  5. bool? isDefault,
  6. WorkflowOperations? operations,
  7. List<ProjectDetails>? projects,
  8. List<WorkflowSchemeIdName>? schemes,
  9. List<WorkflowStatus>? statuses,
  10. List<Transition>? transitions,
  11. DateTime? updated,
})

Implementation

Workflow(
    {this.created,
    required this.description,
    bool? hasDraftWorkflow,
    required this.id,
    bool? isDefault,
    this.operations,
    List<ProjectDetails>? projects,
    List<WorkflowSchemeIdName>? schemes,
    List<WorkflowStatus>? statuses,
    List<Transition>? transitions,
    this.updated})
    : hasDraftWorkflow = hasDraftWorkflow ?? false,
      isDefault = isDefault ?? false,
      projects = projects ?? [],
      schemes = schemes ?? [],
      statuses = statuses ?? [],
      transitions = transitions ?? [];