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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementserialize(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:
serializein interfacecom.google.gson.JsonSerializer<RequestAuth>- Parameters:
src- TheRequestAuthobject to be deserializedtypeOfSrc- The type,RequestAuthcontext- Serialization context- Returns:
- JsonElement The JSON element returned by this serializer
-