Class AuthSerializer

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

public class AuthSerializer extends Object implements com.google.gson.JsonSerializer<RequestAuth>
Custom serializer for the auth element.
  • 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 interface com.google.gson.JsonSerializer<RequestAuth>
      Parameters:
      src - The RequestAuth object to be deserialized
      typeOfSrc - The type, RequestAuth
      context - Serialization context
      Returns:
      JsonElement The JSON element returned by this serializer