This method deserializes the specified JSON into an object of the specified class. It is not suitable to use if the specified class is a generic type since it will not have the generic type information because of the Type Erasure feature of Java. Therefore, this method should not be used if the desi
(String json, Class<T> classOfT)
| 825 | * @see #fromJson(String, TypeToken) |
| 826 | */ |
| 827 | public <T> T fromJson(String json, Class<T> classOfT) throws JsonSyntaxException { |
| 828 | return fromJson(json, TypeToken.get(classOfT)); |
| 829 | } |
| 830 | |
| 831 | /** |
| 832 | * This method deserializes the specified JSON into an object of the specified type. This method |