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