public class SerializationAPIKt
Modifier and Type | Method and Description |
---|---|
static <T> SerializedBytes<T> |
serialize(T $receiver,
SerializationFactory serializationFactory,
SerializationContext context)
Convenience extension method for serializing an object of type T, utilising the defaults.
|
static SerializationContext |
withWhitelist(SerializationContext $receiver,
java.util.List<? extends java.lang.Class<?>> classes)
Helper method to return a new context based on this context with the given list of classes specifically whitelisted.
|
public static <T> SerializedBytes<T> serialize(T $receiver, SerializationFactory serializationFactory, SerializationContext context)
Convenience extension method for serializing an object of type T, utilising the defaults.
public static SerializationContext withWhitelist(SerializationContext $receiver, java.util.List<? extends java.lang.Class<?>> classes)
Helper method to return a new context based on this context with the given list of classes specifically whitelisted.