Package clarifai2.internal
Interface JSONAdapterFactory.Deserializer<T>
-
- Type Parameters:
T
- the data-type that is being reified from the JSON
- Enclosing class:
- JSONAdapterFactory<T>
protected static interface JSONAdapterFactory.Deserializer<T>
An interface that defines how to convert a given JSON element to an object.JsonNull
can be present as the serialized value as well, and must be handled!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
deserialize(@NotNull com.google.gson.JsonElement json, @NotNull com.google.gson.reflect.TypeToken<T> type, @NotNull com.google.gson.Gson gson)
-