Class AuthDeserializer

java.lang.Object
com.postman.collection.adapter.AuthDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<RequestAuth>

public class AuthDeserializer extends Object implements com.google.gson.JsonDeserializer<RequestAuth>
Custom deserializer for the auth property object.
  • Constructor Details

    • AuthDeserializer

      public AuthDeserializer()
  • Method Details

    • deserialize

      public RequestAuth deserialize(com.google.gson.JsonElement jElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Custom GSON deserializer for the RequestAuth object.
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<RequestAuth>
      Parameters:
      jElement - The JSON element passed in by Gson
      typeOfT - The type for the adapter, RequestAuth
      context - Deserialization context
      Returns:
      RequestAuth The assembed RequestAuth object
      Throws:
      com.google.gson.JsonParseException - IF there are errors in the JSON element