Class VarGeometryAdaptor

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

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

  • Method Details

    • deserialize

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

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