Class VarScriptAdaptor

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

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

  • Method Details

    • deserialize

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

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