### Question:
WxMaCodeCommitRequest implements Serializable { public String toJson() { return WxMaGsonBuilder.create().toJson(this); }  String toJson();  }### Answer:
@Test public void testToJson() { WxMaCodeCommitRequest commitRequest = WxMaCodeCommitRequest.builder() .templateId(1L) .userVersion("v0.1.0") .userDesc("init") .extConfig(WxMaCodeExtConfig.builder() .extAppid("app123") .extEnable(true) .build()) .build(); assertEquals(commitRequest.toJson(), "{\"template_id\":1,\"user_version\":\"v0.1.0\",\"user_desc\":\"init\",\"ext_json\":\"{\\\"extEnable\\\":true,\\\"extAppid\\\":\\\"app123\\\"}\"}"); }