Class VarEventAdaptor

java.lang.Object
com.walkfares.odsl.var.adaptor.VarEventAdaptor
All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarEvent>, com.google.gson.JsonSerializer<VarEvent>

public class VarEventAdaptor
extends Object
implements com.google.gson.JsonSerializer<VarEvent>, com.google.gson.JsonDeserializer<VarEvent>
  • Constructor Details

  • Method Details

    • deserialize

      public VarEvent 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<VarEvent>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize​(VarEvent src, Type type, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<VarEvent>