toMap method

Map<String, dynamic> toMap()

Serializes this step to a map suitable for YAML output.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'type': 'command',
    'id': id,
    'commands': commands,
    if (workingDirectory != null) 'working_directory': workingDirectory,
    if (environment != null) 'environment': environment,
  };
}