code: func (ls *Labels) UnmarshalJSON(b []byte) error {
  	var m map[string]string
  
  	if err := json.Unmarshal(b, &m); err != nil {
  		return err
  	}
  
  	*ls = FromMap(m)
  	return nil
  }
docs: // UnmarshalJSON implements json.Unmarshaler.