code: func getParams(genericParams map[string]interface{}) (map[string]string, error) {
  	params := map[string]string{}
  	for key, value := range genericParams {
  		strVal, isString := value.(string)
  		if !isString {
  			return nil, fmt.Errorf("expected string, saw %v for '%s'", value, key)
  		}
  		params[key] = strVal
  	}
  	return params, nil
  }
docs: // getParams returns map of generic parameters.