https://blog.csdn.net/ShiXinXin_Harbour/article/details/120829943
String转List:
mVideoHistoryList = gson.fromJson(strExistList, new TypeToken<List<VideoVpModel>>() {
}.getType()); //将json字符串转换成List集合
List转String:
String strHistoryList = gson.toJson(mVideoHistorySumList);
0 条评论