getRole()
getRole() : string|null
Returns the role.
This method returns a string representation whenever possible.
When the role cannot be represented with sufficient precision by a string, it should return null.
Returns
string|null —A string representation of the role, or null