Package com.contentful.java.cma.gson
Class EntrySerializer
- java.lang.Object
-
- com.contentful.java.cma.gson.EntrySerializer
-
-
Constructor Summary
Constructors Constructor Description EntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMAEntrydeserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(CMAEntry src, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)Make sure all fields are mapped in the locale - value way.
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(CMAEntry src, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
Make sure all fields are mapped in the locale - value way.- Specified by:
serializein interfacecom.google.gson.JsonSerializer<CMAEntry>- Parameters:
src- the source to be edited.type- the type to be used.context- the json context to be changed.- Returns:
- a created json element.
-
deserialize
public CMAEntry deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<CMAEntry>- Throws:
com.google.gson.JsonParseException
-
-