Package com.postman.collection.adapter
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement jElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) Custom GSON deserializer for theRequestAuthobject.
-
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 theRequestAuthobject.- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<RequestAuth>- Parameters:
jElement- The JSON element passed in by GsontypeOfT- The type for the adapter,RequestAuthcontext- Deserialization context- Returns:
RequestAuthThe assembedRequestAuthobject- Throws:
com.google.gson.JsonParseException- IF there are errors in the JSON element
-