serialize

abstract fun serialize(): ByteArray

Serializes this object to a ByteArray.

Return

A ByteArray representing the serialized form of this object.