datadog-accessors.go
func (m *MetricMetadata) HasUnit() bool {
	if m != nil && m.Unit != nil {
		return true
	}

	return false
}
func (m *MetricMetadata) HasUnit() bool {
	if m != nil && m.Unit != nil {
		return true
	}

	return false
}
func ( m * MetricMetadata ) HasUnit ( ) bool { if m != nil && m . Unit != nil { return true } return false }
// HasUnit returns a boolean if a field has been set.
HasUnit returns a boolean if a field has been set .