code: func (a *AggregationGeoCentroidMetric) UnmarshalJSON(data []byte) error {
  	var aggs map[string]json.RawMessage
  	if err := json.Unmarshal(data, &aggs); err != nil {
  		return err
  	}
  	if v, ok := aggs["location"]; ok && v != nil {
  		json.Unmarshal(v, &a.Location)
  	}
  	if v, ok := aggs["meta"]; ok && v != nil {
  		json.Unmarshal(v, &a.Meta)
  	}
  	if v, ok := aggs["count"]; ok && v != nil {
  		json.Unmarshal(v, &a.Count)
  	}
  	a.Aggregations = aggs
  	return nil
  }
docs: // UnmarshalJSON decodes JSON data and initializes an AggregationGeoCentroidMetric structure.