public static <T> T fromJson(String json, Class<T> classOfT) {
        return gson.fromJson(json, classOfT);
    }
This method deserializes the specified Json into an object of the specified class.

@param json     json
@param classOfT class of T
@param <T>      T
@return T
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/GsonUtil.java