code: public Map<String, Object> toMap() {
          HashMap<String, Object> map = new HashMap<>();
  
          map.put("id", id);
          map.put("pipelineName", pipelineName);
          map.put("stageName", stageName);
          map.put("myCheckin", myCheckin);
          map.put("event", event.toString());
  
          return map;
      }
docs: Used for JSON serialization in Rails
  
  @return a Map representation of this {@link NotificationFilter} instance that is serializable by JRuby