Package clarifai2.internal
Interface JSONAdapterFactory.Serializer<T>
-
- Type Parameters:
T
- the data-type that is being converted to JSON
- Enclosing class:
- JSONAdapterFactory<T>
protected static interface JSONAdapterFactory.Serializer<T>
An interface that defines how to convert a given object to JSON. Null objects must be handled!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull com.google.gson.JsonElement
serialize(T value, @NotNull com.google.gson.Gson gson)
-
-
-
Method Detail
-
serialize
@NotNull @NotNull com.google.gson.JsonElement serialize(@Nullable T value, @NotNull @NotNull com.google.gson.Gson gson)
-
-