Class VarTaskAdaptor

java.lang.Object
com.walkfares.odsl.var.task.VarTaskAdaptor
All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarTask>, com.google.gson.JsonSerializer<VarTask>

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

  • Method Details

    • serialize

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

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