在java中,我们是这样使用的: Type type = new TypeToken<Result>() { }.getType();然后使用Gson去解析对象:gson.fromJson(json, type);在Kotlin中:第一种方式:val ...
確定! 回上一頁