serialize

abstract fun serialize(instance: Any): Map<String, T>

Serializes the content of the given instance to a Map where each entry is the name and value for each Field of the given instance.