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': 'git_apply_patch',
    'id': id,
    'patch_path': patchPath,
    if (targetDirectory != null) 'target_directory': targetDirectory,
  };
}