GitApplyPatchStep.fromMap constructor

GitApplyPatchStep.fromMap(
  1. Map<String, dynamic> map
)

Creates a GitApplyPatchStep from a YAML-derived map.

Implementation

factory GitApplyPatchStep.fromMap(Map<String, dynamic> map) {
  return GitApplyPatchStep(
    id: map['id'] as String? ?? 'git_apply_patch',
    patchPath: map['patch_path'] as String,
    targetDirectory: map['target_directory'] as String?,
  );
}