Class VarLinksAdaptor

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

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

  • Method Details

    • deserialize

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

      public com.google.gson.JsonElement serialize​(VarLinks links, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<VarLinks>