Package com.postman.collection.adapter
Class AuthSerializer
java.lang.Object
com.postman.collection.adapter.AuthSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<RequestAuth>
Custom serializer for the
auth
element.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElement
serialize
(RequestAuth src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
AuthSerializer
public AuthSerializer()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(RequestAuth src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<RequestAuth>
- Parameters:
src
- TheRequestAuth
object to be deserializedtypeOfSrc
- The type,RequestAuth
context
- Serialization context- Returns:
- JsonElement The JSON element returned by this serializer
-