JsonUtil.fromJson(body, new TypeToken<BaseReqVo<EnterNotifyReqVo>>(){}.getType());
用 TypeToken 构造一个 BaseReqVo<EnterNotifyReqVo> 的 type
public static <T> T fromJson(String str, Type type) {
return getGsonInstance().fromJson(str, type);
}
JsonUtil.fromJson(body, new TypeToken<BaseReqVo<EnterNotifyReqVo>>(){}.getType());
用 TypeToken 构造一个 BaseReqVo<EnterNotifyReqVo> 的 type
public static <T> T fromJson(String str, Type type) {
return getGsonInstance().fromJson(str, type);
}