@Test public void test_toObject() throws RdapClientException { DomainDto dto = JsonUtil.toObject(json, DomainDto.class); assertEquals("handle1", dto.getHandle()); assertEquals("dns-handle1", dto.getSecureDNS().getHandle()); assertEquals("description1", dto.getSecureDNS().getRemarks().get(0) .getDescription().get(0)); assertEquals("description2", dto.getSecureDNS().getRemarks().get(0) .getDescription().get(1)); }
public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap); }
JsonUtil { public static <T> T toObject(String json, Class<T> objectType) throws RdapClientException { return toObject(json, objectType, null); } private  JsonUtil(); static String toJson(Object object); static T toObject(String json, Class<T> objectType); static T toObject(String json, Class<T> objectType,
            Map<String, String> unknownPropertiesMap);  }