Changing Card Color in List View Based on API Response

Hello, I would like to know how I can change the color of a card in a list view based on the response from an API, which can be of type "open", "close", or "cancelled". I've searched but couldn't find if this is possible. I tried searching within the 'equal to' condition, but since the response from the list view is in JSON, I'm unable to check with a string value.

3