Class 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 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
    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BodyErrorJsonDeserializer

        public BodyErrorJsonDeserializer()
    • 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 interface com.google.gson.JsonDeserializer<BodyError>
        Throws:
        com.google.gson.JsonParseException
        Since:
        2.0.0