toMap method
Serializes this step to a map suitable for YAML output.
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'type': 'cmake_build',
'id': id,
'build_directory': buildDirectory,
if (targets.isNotEmpty) 'targets': targets,
if (parallel != true) 'parallel': parallel,
if (environment != null) 'environment': environment,
};
}