public function generateModels()
    {
        $definition = $this->getDefinition();
        foreach ($definition as $modelName => $modelDefinition) {
            $type = 'model';
            if (isset($modelDefinition['type']) === true && in_array($modelDefinition['type'], [ 'enum', 'model' ]) === true) {
                $type = $modelDefinition['type'];
            }
            if ($type == 'enum') {
                $this->generateEnum($modelName, $modelDefinition);
            } else {
                $this->generateModel($modelName, $modelDefinition);
            }
        }
    }