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
}
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
}
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 }
// UnmarshalJSON implements json.Unmarshaler.
UnmarshalJSON implements json . Unmarshaler .