Class CustomDeserializers.ServerStateAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<ServerState>
    Enclosing class:
    CustomDeserializers

    public static class CustomDeserializers.ServerStateAdapter
    extends Object
    implements com.google.gson.JsonDeserializer<ServerState>
    • Constructor Detail

      • ServerStateAdapter

        public ServerStateAdapter()
    • Method Detail

      • deserialize

        public ServerState deserialize​(com.google.gson.JsonElement jsonElement,
                                       Type type,
                                       com.google.gson.JsonDeserializationContext context)
                                throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<ServerState>
        Throws:
        com.google.gson.JsonParseException