code: func (ls *Labels) UnmarshalYAML(unmarshal func(interface{}) error) error {
  	var m map[string]string
  
  	if err := unmarshal(&m); err != nil {
  		return err
  	}
  
  	*ls = FromMap(m)
  	return nil
  }
docs: // UnmarshalYAML implements yaml.Unmarshaler.