extractPropertyNames

Extracts the names of the public, mutable properties of a data class in the order in which they are declared in the primary constructor.

If the object is not an instance of a data class, then the returned list will be empty.