I have exactly that scenario -- I obtain a subset of the fields of a data class as "updates" from an external API. I then apply these updates to a data object using reflection to convert the values to the correct type based on the
KProperty
information, and then to execute the copy constructor for the updated fields.