I have a Kotlin class in my application with a lot of attributes, what I want to build is a method that stores the variable name in a dictionary. The dictionary looks like t
Use memberProperties to get the names of the class attributes and others properties. For instance:
memberProperties
YourClass::class.memberProperties.map { println(it.name) println(it.returnType) }