Interface JSONAdapterFactory.Serializer<T>

  • Type Parameters:
    T - the data-type that is being converted to JSON
    Enclosing class:
    JSONAdapterFactory<T>

    protected static interface JSONAdapterFactory.Serializer<T>
    An interface that defines how to convert a given object to JSON. Null objects must be handled!
    • Method Detail

      • serialize

        @NotNull
        @NotNull com.google.gson.JsonElement serialize​(@Nullable
                                                       T value,
                                                       @NotNull
                                                       @NotNull com.google.gson.Gson gson)