Class StatusAdaptor

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

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

  • Method Details

    • deserialize

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

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