Map<String, Class<?>> classMap = new HashMap<String, Class<?>>();
classMap.put("order", order.getClass());
classMap.put("obStorage", obStorage.getClass());
classMap.put("network", network.getClass());
classMap.put("vms", vms.getClass());
classMap.put("safe", safe.getClass());
classMap.put("ability", ability.getClass());
classMap.put("vlanBwScale", vlanBwScale.getClass());
classMap.put("vlan", vlan.getClass());
classMap.put("osScale", osScale.getClass());
classMap.put("middlewareScale", middlewareScale.getClass());
classMap.put("vpn", vpn.getClass());
classMap.put("orderHistoryList",ods.getClass() );
SubscribeInfo orderDetail = (SubscribeInfo) JSONObject.toBean(orderDetailJson, SubscribeInfo.class, classMap);
json to javaBean
最新推荐文章于 2024-07-03 02:58:10 发布