has Property With Name
abstract fun hasPropertyWithName(name: String, vararg names: String, includeNested: Boolean = true): Boolean
Determines whether the declaration has at least one property whose name matches any of the specified names.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
name
the name of the property to check.
names
the names of the properties to check.
include Nested
Specifies whether to include nested properties in the check (optional, default is true
).
Determines whether the declaration has at least one property whose name matches any of the specified names.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
names
the names of the properties to check.
include Nested
Specifies whether to include nested properties in the check (optional, default is true
).