public function __construct(IntrospectedWorkflow $instrospectedWorkflow)
 {
     $this->workflowName = $instrospectedWorkflow->getWorkflowName();
     $colors = $this->assignUniqueColorToStates($instrospectedWorkflow->getIntrospectedStates());
     $this->jsonableStates = $this->createStatesRepresentation($instrospectedWorkflow->getIntrospectedStates(), $colors);
     $this->jsonableTransitions = $this->createTransitionsRepresentation($instrospectedWorkflow->getIntrospectedTransitions(), $colors);
 }