public class GsonButtonMarshaller<T extends Button> extends GsonComponentMarshaller<T>
Button
.Constructor and Description |
---|
GsonButtonMarshaller() |
Modifier and Type | Method and Description |
---|---|
protected void |
marshal(T object,
com.google.gson.JsonObject json,
GsonMarshalContext context)
Reads data from object and puts it to json object.
|
protected void |
unmarshal(com.google.gson.JsonObject json,
T object,
GsonMarshalContext context)
Reads data from json object and puts it to object.
|
jsonMarshal, marshal, unmarshal, unmarshal
protected void marshal(T object, com.google.gson.JsonObject json, GsonMarshalContext context)
marshal
in class GsonComponentMarshaller<T extends Button>
object
- object to read.json
- json object to fill.context
- marshal context.protected void unmarshal(com.google.gson.JsonObject json, T object, GsonMarshalContext context)
unmarshal
in class GsonComponentMarshaller<T extends Button>
json
- json object to read.object
- object to fill.context
- marshal context.