Class BodyErrorJsonDeserializer
- java.lang.Object
-
- org.eclipse.keyple.core.util.json.BodyErrorJsonDeserializer
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<BodyError>
public class BodyErrorJsonDeserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<BodyError>
JSON deserializer of aBodyError
.It is not necessary to define a serializer because the type of the associated object registered is a class and not an interface, and therefore has fields. Gson will then use its default reflexivity mechanism to serialize the object.
- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description BodyErrorJsonDeserializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BodyError
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context)
-
-
-
Method Detail
-
deserialize
public BodyError deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<BodyError>
- Throws:
com.google.gson.JsonParseException
- Since:
- 2.0.0
-
-