title: kotlin reflection get list of fields
body: <p>is there an equivalent for the java reflection <code>foo.getClass().getFields()</code> in Kotlin? I could only find that I can access a field when I know it's name, but I would like to handle fields in a generic way.</p>