serialize

abstract fun serialize(session: T): String

Serializes a complex arbitrary object into a String.