Class BodyErrorJsonDeserializer

java.lang.Object
org.eclipse.keyple.core.util.json.BodyErrorJsonDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<BodyError>

public class BodyErrorJsonDeserializer extends Object implements com.google.gson.JsonDeserializer<BodyError>
JSON deserializer of a BodyError.

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 Details

    • BodyErrorJsonDeserializer

      public BodyErrorJsonDeserializer()
  • Method Details

    • deserialize

      public BodyError deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<BodyError>
      Throws:
      com.google.gson.JsonParseException
      Since:
      2.0.0