How can I consume a webhook that sends different data depending on the event

Hi

I’m trying to consume a webhook that sends varying data depending on the event that triggers it.

So there’s an event field and a data object. And the structure of the data object changes depending on the event type

How can I use a backend workflow to parse the different types of events.