toYamlMap method
Converts this ProjectConfig into a YAML-serializable Map.
Implementation
Map<String, dynamic> toYamlMap() {
return {
'name': projectName,
'org': org,
'platforms': platforms,
'architecture': architecture,
'state_management': stateManagement,
if (routing != null) 'routing': routing,
'git_init': gitInit,
'generate_readme': generateReadme,
'dependencies': dependencies,
if (templates.isNotEmpty) 'templates': templates,
if (agents.isNotEmpty) 'agents': agents,
if (documentation.isNotEmpty) 'documentation': documentation,
};
}