Hi,
i’m trying to assert if a certain object is of a certain type.
[
{
"id": 25,
"username": "username",
"firstname": "First",
"lastname": "Last",
"personalIdentityNumber": null,
"roles": {
"client": {
"clientNumber": null,
"employments": [
"111",
"555"
]
},
"mainAdministrator": {}
},
"active": true,
"email": null,
"careOf": null,
"street": null,
"zipCode": null,
"city": null,
"phoneNumber": null,
"cellPhoneNumber": null
},
{...},
{...},
{...},
{...}
]
Right now i’m trying to find out if the user has the role of client.
How can I assert that?