Class VarTransformerAdapter

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

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

  • Method Details

    • deserialize

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

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