// FromConfig creates the struct representation of a step deleting a file/folder
FromConfig creates the struct representation of a step deleting a file/folder
// FromConfig creates the struct representation of a step deleting a file / folder
func (delete *Delete) FromConfig(configYaml map[string]interface{}) error {
	delete.Kind = KindDelete
	if description, ok := configYaml["Description"]; ok {
		delete.Description = description.(string)
	}
	preferencesYaml := configYaml["Preferences"].(map[string]interface{})
	delete.Path = preferencesYaml["Path"].(string)
	return nil
}
func ( delete * Delete ) FromConfig ( configYaml map [ string ] interface { } ) error { delete . Kind = KindDelete if description , ok := configYaml [ " " ] ; ok { delete . Description = description . ( string ) } preferencesYaml := configYaml [ " " ] . ( map [ string ] interface { } ) delete . Path = preferencesYaml [ " " ] . ( string ) return nil }
FromConfig creates the struct representation of a step deleting a file/folder
FromConfig creates the struct representation of a step deleting a file / folder