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': 'copy',
    'id': id,
    'source_path': sourcePath,
    'destination_path': destinationPath,
    if (recursive != true) 'recursive': recursive,
  };
}