java.lang.Object
io.github._4drian3d.jdwebhooks.serializer.WebHookSerializer
All Implemented Interfaces:
com.google.gson.JsonSerializer<WebHook>

public final class WebHookSerializer extends Object implements com.google.gson.JsonSerializer<WebHook>
  • Constructor Details

    • WebHookSerializer

      public WebHookSerializer()
  • Method Details

    • serialize

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

      default void addNonNull(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull String name, @Nullable @Nullable Object value)
    • addNonNull

      default void addNonNull(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull String name, @Nullable @Nullable Number value)
    • addNonNull

      default void addNonNull(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull String name, @Nullable @Nullable Boolean value)