public static CommonResponse fromJson(String json, Class clazz) {
        Type objectType = type(CommonResponse.class, clazz);
        return gson.fromJson(json, objectType);
    }
Converts a JSON string to a CommonResponse object.

@param json the JSON string
@param clazz the class of the data
@return a CommonResponse object
inlong-audit/audit-common/src/main/java/org/apache/inlong/audit/entity/CommonResponse.java