return type.cast(res);
}
static String objectToJson(Object object) throws IOException {
ApiObjectMapper objectMapper = new ApiObjectMapper();
return objectMapper.writeValueAsString(object);
}
static <T> T jsonToObject(String text, Class<T> type)
throws IOException {
ApiObjectMapper objectMapper = new ApiObjectMapper();