public class ReferenceDtoAdapter
extends Object
implements com.google.gson.TypeAdapterFactory
Reference<T> field can be either a full object (like a Client) or a
ReferenceDto (e.g. ClientReferenceDto). When serializing, we only need an id
like client_id:123213, while we deserialize expecting a ReferenceDto| Constructor and Description |
|---|
ReferenceDtoAdapter() |
| Modifier and Type | Method and Description |
|---|---|
<T> com.google.gson.TypeAdapter<T> |
create(com.google.gson.Gson gson,
com.google.gson.reflect.TypeToken<T> type) |