Class NotificationDeserializer

java.lang.Object
org.oddjob.websocket.NotificationDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Notification<?>>

public class NotificationDeserializer extends Object implements com.google.gson.JsonDeserializer<Notification<?>>
Gson deserializer for Notifications.
  • Field Details

  • Constructor Details

    • NotificationDeserializer

      public NotificationDeserializer()
  • Method Details

    • deserialize

      public Notification<?> deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<Notification<?>>
      Throws:
      com.google.gson.JsonParseException