return converter.getMap();
}
private Map<String, String> getAsStringMap(HeaderMap requestParams) {
Map<String, String> map = new HashMap<String, String>();
HeaderMapSpec spec = requestParams.getSpec();
for (Map.Entry<String, Object> entry : requestParams.entrySet()) {
String paramName = entry.getKey();
Type type = spec.getTypeFor(paramName);
Object value = entry.getValue();
String json = stripEnclosingQuotes(gson.toJson(value, type));
map.put(paramName, json);
}
return map;