fun Serializable.serializeToBytes(): Bytes
Extension function that serializes any Serializable to an instance of Bytes using an ObjectOutputStream.