public class InstanceIdDTOTypeAdapter extends Object implements JsonTypeAdapter<InstanceIdDTO>
| Constructor and Description |
|---|
InstanceIdDTOTypeAdapter(GlobalIdFactory globalIdFactory) |
| Modifier and Type | Method and Description |
|---|---|
InstanceIdDTO |
fromJson(com.google.gson.JsonElement json,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
List<Class> |
getValueTypes()
Target classes.
|
com.google.gson.JsonElement |
toJson(InstanceIdDTO dtoId,
com.google.gson.JsonSerializationContext context) |
public InstanceIdDTOTypeAdapter(GlobalIdFactory globalIdFactory)
public InstanceIdDTO fromJson(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
fromJson in interface JsonTypeAdapter<InstanceIdDTO>json - not null and not JsonNulljsonDeserializationContext - use it to invoke default deserialization on the specified objectpublic com.google.gson.JsonElement toJson(InstanceIdDTO dtoId, com.google.gson.JsonSerializationContext context)
toJson in interface JsonTypeAdapter<InstanceIdDTO>dtoId - not nullcontext - use it to invoke default serialization on the specified objectpublic List<Class> getValueTypes()
JsonTypeAdaptergetValueTypes in interface JsonTypeAdapter<InstanceIdDTO>Copyright © 2014. All rights reserved.