@Test public void parseNull() { assertNull(BotUtils.fromJson(null, SendResponse.class)); assertNull(BotUtils.fromJson("",SendResponse.class)); }
public static <R> R fromJson(String jsonString, Class<R> resClass) { return gson.fromJson(jsonString,resClass); }
BotUtils { public static <R> R fromJson(String jsonString, Class<R> resClass) { return gson.fromJson(jsonString,resClass); } }
BotUtils { public static <R> R fromJson(String jsonString, Class<R> resClass) { return gson.fromJson(jsonString,resClass); } private  BotUtils(); }
BotUtils { public static <R> R fromJson(String jsonString, Class<R> resClass) { return gson.fromJson(jsonString,resClass); } private  BotUtils(); static Update parseUpdate(String update); static Update parseUpdate(Reader reader); static R fromJson(String jsonString, Class<R> resClass); static String toJson(Object obj); }
BotUtils { public static <R> R fromJson(String jsonString, Class<R> resClass) { return gson.fromJson(jsonString,resClass); } private  BotUtils(); static Update parseUpdate(String update); static Update parseUpdate(Reader reader); static R fromJson(String jsonString, Class<R> resClass); static String toJson(Object obj);  }