// FromConfig creates the struct representation of a download step
FromConfig creates the struct representation of a download step
// FromConfig creates the struct representation of a download step
func (download *Download) FromConfig(configYaml map[string]interface{}) error {
	download.Kind = KindDownload
	if description, ok := configYaml["Description"]; ok {
		download.Description = description.(string)
	}
	preferencesYaml := configYaml["Preferences"].(map[string]interface{})
	download.URL = preferencesYaml["URL"].(string)
	download.Path = preferencesYaml["Path"].(string)
	return nil
}
func ( download * Download ) FromConfig ( configYaml map [ string ] interface { } ) error { download . Kind = KindDownload if description , ok := configYaml [ " " ] ; ok { download . Description = description . ( string ) } preferencesYaml := configYaml [ " " ] . ( map [ string ] interface { } ) download . URL = preferencesYaml [ " " ] . ( string ) download . Path = preferencesYaml [ " " ] . ( string ) return nil }
FromConfig creates the struct representation of a download step
FromConfig creates the struct representation of a download step