@Test public void testFromJson() throws Exception { String json = "{\n" + " \"errcode\": 0,\n" + " \"errmsg\": \"ok\",\n" + " \"result_bonus\": 100,\n" + " \"result_balance\": 200,\n" + " \"openid\": \"oFS7Fjl0WsZ9AMZqrI80nbIq8xrA\"\n" + "}"; WxMpMemberCardUpdateResult result = WxMpMemberCardUpdateResult.fromJson(json); assertNotNull(result); assertTrue(result.getErrorCode().equalsIgnoreCase("0")); System.out.println(result); }
public static WxMpMemberCardUpdateResult fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpMemberCardUpdateResult.class); }
WxMpMemberCardUpdateResult implements Serializable { public static WxMpMemberCardUpdateResult fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpMemberCardUpdateResult.class); } }
WxMpMemberCardUpdateResult implements Serializable { public static WxMpMemberCardUpdateResult fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpMemberCardUpdateResult.class); }  }
WxMpMemberCardUpdateResult implements Serializable { public static WxMpMemberCardUpdateResult fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpMemberCardUpdateResult.class); }  @Override String toString(); static WxMpMemberCardUpdateResult fromJson(String json); }
WxMpMemberCardUpdateResult implements Serializable { public static WxMpMemberCardUpdateResult fromJson(String json) { return WxMpGsonBuilder.INSTANCE.create().fromJson(json, WxMpMemberCardUpdateResult.class); }  @Override String toString(); static WxMpMemberCardUpdateResult fromJson(String json);  }