@ JsonCreator static NessEvent createEvent ( @ Nullable @ JsonProperty ( "user" ) final UUID user , @ Nullable @ JsonProperty ( "timestamp" ) final DateTime timestamp , @ Nonnull @ JsonProperty ( "id" ) final UUID id , @ Nonnull @ JsonProperty ( "type" ) final NessEventType type , @ Nullable @ JsonProperty ( "payload" ) final Map < String , ? extends Object > payload ) { return new NessEvent ( user , timestamp , type , payload , id ) ; }
Create a new event from over - the - wire json .