class JsonUtils {
    public static final Gson gson = new GsonBuilder().disableHtmlEscaping().create();
    public static <T> IMResult<T> fromJsonObject(String content, Class<T> clazz) {<FILL_FUNCTION_BODY>}

    public static boolean isNullOrEmpty(String str) {
        return str == null || str.isEmpty();
    }
}

        TypeBuilder builder = TypeBuilder.newInstance(IMResult.class);
        if (!clazz.equals(Void.class)) {
            builder.addTypeParam(clazz);
        }
        return gson.fromJson(content, builder.build());
    
<no_super_class>