Class InterfaceSerializer<T>

java.lang.Object
io.github.astrapi69.gson.serializer.InterfaceSerializer<T>
All Implemented Interfaces:
com.google.gson.JsonSerializer<T>

public class InterfaceSerializer<T> extends Object implements com.google.gson.JsonSerializer<T>
  • Field Details

  • Constructor Details

    • InterfaceSerializer

      public InterfaceSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(T src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<T>
    • getClassName

      public String getClassName(T src, Type typeOfSrc)