Class InstantSerializer

java.lang.Object
org.spincast.plugins.gson.serializers.InstantSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<Instant>

public class InstantSerializer extends Object implements com.google.gson.JsonSerializer<Instant>
  • Constructor Details

    • InstantSerializer

      public InstantSerializer()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(Instant instant, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Instant>