Open
Description
Having this class
data class Person(
val firstName: String,
val lastName: String,
val age: String,
val address: String,
val phoneNumbers: List<String>,
val friends: Map<String, String>
)
and calling
Person::class.toImmutableKmClass().properties.map { it.name }
produces:
[address, age, firstName, friends, lastName, phoneNumbers]
Is it possible to iterate them in order of declaration?
Not sure if this is a kotlin-metadata
or kotlinpoet
issue.
Activity