ICustomMetadataSerializer

An interface defining a serializer and deserializer for a CustomValue.

Functions

Link copied to clipboard
@NotNull
abstract fun <T> deserialize(@NotNull codec: @NotNull Codec<T>, @NotNull customValue: @NotNull CustomValue): @NotNull T
Deserializes the given custom value with the given codec.
Link copied to clipboard
@NotNull
abstract fun <T> serialize(@NotNull codec: @NotNull Codec<T>, @NotNull value: @NotNull T): @NotNull DataResult<CustomValue>
Serializes the given object with the given codec.