serialize

abstract fun serialize(obj: T): U

Converts a domain entity to its storage representation.

Return

The serialized representation suitable for storage.

Parameters

obj

The domain entity to serialize.