package com.emailclue.api.model;

import com.fasterxml.jackson.annotation.JsonCreator;

public class EmailSent {

    private final String eventId;

    @JsonCreator()
    public EmailSent(String eventId) {
        this.eventId = eventId;
    }

}

@@ -79,16 +79,70 @@
 Creator;
+%0Aimport com.fasterxml.jackson.annotation.JsonProperty;
 %0A%0Apublic
@@ -236,16 +236,41 @@
 ailSent(
+@JsonProperty(%22eventId%22) 
 String e
@@ -318,10 +318,74 @@
 %0A    %7D%0A%0A
+    public String getEventId() %7B%0A        return eventId;%0A    %7D%0A%0A
 %7D%0A

Add getter for eventId so that it is serialised