toMap

fun <T> T.toMap(): Map<String, Any>

Convert an object to a Map