转集合实体类
JSONObject obj = new JSONObject(json);
JSONObject list = obj.optJSONObject("list");
List<BonusPoolEntity.ListBean.LotteryLogBean> logBeanList = com.alibaba.fastjson.JSONObject.parseArray(list.optJSONArray("lottery_log").toString(),BonusPoolEntity.ListBean.LotteryLogBean.class);
HashMap 转实体类
private void initNews(BaseViewHolder baseViewHolder, final HashMap<String, Object> stringObjectHashMap) { final MoreSectionDatasBean.NewsSectionDatasBean newsSectionDatasBean= JSONObject.parseObject(JSON.toJSONString(stringObjectHashMap),MoreSectionDatasBean.NewsSectionDatasBean.class);}