Is it possible? Dynamic notification type?

I have a Server Connect API that returns a success/error/warning with associated message as part of the JSON. I can get the message into a notification but would ideally like the type of notification to be relevant. There are separate entries in the JSON for the type (which are handily called success, warning and error) and the message. Can the JSON be used to choose which type of notification to show?

Community Page
Last updated: