@Test public void testFromJson() { String json = "{\r\n" + " \"kf_online_list\": [\r\n" + " {\r\n" + " \"kf_account\": \"test1@test\", \r\n" + " \"status\": 1, \r\n" + " \"kf_id\": \"1001\", \r\n" + " \"auto_accept\": 0, \r\n" + " \"accepted_case\": 1\r\n" + " },\r\n" + " {\r\n" + " \"kf_account\": \"test2@test\", \r\n" + " \"status\": 1, \r\n" + " \"kf_id\": \"1002\", \r\n" + " \"auto_accept\": 0, \r\n" + " \"accepted_case\": 2\r\n" + " }\r\n" + " ]\r\n" + "}"; WxMpKfOnlineList wxMpKfOnlineList = WxMpKfOnlineList.fromJson(json); Assert.assertNotNull(wxMpKfOnlineList); System.err.println(ToStringBuilder.reflectionToString(wxMpKfOnlineList)); }
public static WxMpKfOnlineList fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpKfOnlineList.class); }
WxMpKfOnlineList implements Serializable { public static WxMpKfOnlineList fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpKfOnlineList.class); } }
WxMpKfOnlineList implements Serializable { public static WxMpKfOnlineList fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpKfOnlineList.class); }  }
WxMpKfOnlineList implements Serializable { public static WxMpKfOnlineList fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpKfOnlineList.class); }  static WxMpKfOnlineList fromJson(String json); @Override String toString(); }
WxMpKfOnlineList implements Serializable { public static WxMpKfOnlineList fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpKfOnlineList.class); }  static WxMpKfOnlineList fromJson(String json); @Override String toString();  }