Workflow constructor
Workflow({
- DateTime? created,
- required String description,
- bool? hasDraftWorkflow,
- required PublishedWorkflowId id,
- bool? isDefault,
- WorkflowOperations? operations,
- List<
ProjectDetails> ? projects, - List<
WorkflowSchemeIdName> ? schemes, - List<
WorkflowStatus> ? statuses, - List<
Transition> ? transitions, - 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 ?? [];