code: func (s *IndicesRolloverService) getBody() interface{} {
  	body := make(map[string]interface{})
  	if len(s.conditions) > 0 {
  		body["conditions"] = s.conditions
  	}
  	if len(s.settings) > 0 {
  		body["settings"] = s.settings
  	}
  	if len(s.mappings) > 0 {
  		body["mappings"] = s.mappings
  	}
  	return body
  }
docs: // getBody returns the body of the request, if not explicitly set via
  // BodyJson or BodyString.