Thank you for your replies DPrakashRaj and Tanika02. I was missing the fact that DamEvent does not implement Serializable, but DamEvent.Type does. So a little bit of refactoring fixed my issue while sending the payload:DamEvent damEvent = DamEvent.fromEvent(event);payload.put("eventType", damEvent.g...