// FromConfig creates the struct representation of a unzip step
FromConfig creates the struct representation of a unzip step
// FromConfig creates the struct representation of a unzip step
func (unzip *Unzip) FromConfig(configYaml map[string]interface{}) error {
	unzip.Kind = KindUnzip
	if description, ok := configYaml["Description"]; ok {
		unzip.Description = description.(string)
	}
	preferencesYaml := configYaml["Preferences"].(map[string]interface{})
	unzip.Source = preferencesYaml["Source"].(string)
	unzip.Destination = preferencesYaml["Destination"].(string)
	return nil
}
func ( unzip * Unzip ) FromConfig ( configYaml map [ string ] interface { } ) error { unzip . Kind = KindUnzip if description , ok := configYaml [ " " ] ; ok { unzip . Description = description . ( string ) } preferencesYaml := configYaml [ " " ] . ( map [ string ] interface { } ) unzip . Source = preferencesYaml [ " " ] . ( string ) unzip . Destination = preferencesYaml [ " " ] . ( string ) return nil }
FromConfig creates the struct representation of a unzip step
FromConfig creates the struct representation of a unzip step