serialize

abstract fun <T : Any> serialize(obj: T): SerializedBytes<T>

Serializes the input obj.

Return

SerializedBytes containing the serialized representation of the input object.

Parameters

obj

The object to serialize.