public interface GsonRender
renderable object wrapper
for rendering as JSON.Gson.json(java.lang.Object)
Modifier and Type | Method and Description |
---|---|
com.google.gson.Gson |
getGson()
The
Gson instance to use when serializing the object to JSON. |
java.lang.Object |
getObject()
The underlying object to be rendered.
|
java.lang.Object getObject()
@Nullable com.google.gson.Gson getGson()
Gson
instance to use when serializing the object to JSON.
If null
then an instance will be obtained from the registry or a default instance will be created.