serialize

@NotNull
abstract fun <T> serialize(@NotNull obj: T): SerializedBytes<T>

Serializes the input obj.

Return

SerializedBytes containing the serialized representation of the input object.

Parameters

obj

The object to serialize.