code: public void marshall(Event event, ProtocolMarshaller protocolMarshaller) {
  
          if (event == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(event.getAppPackageName(), APPPACKAGENAME_BINDING);
              protocolMarshaller.marshall(event.getAppTitle(), APPTITLE_BINDING);
              protocolMarshaller.marshall(event.getAppVersionCode(), APPVERSIONCODE_BINDING);
              protocolMarshaller.marshall(event.getAttributes(), ATTRIBUTES_BINDING);
              protocolMarshaller.marshall(event.getClientSdkVersion(), CLIENTSDKVERSION_BINDING);
              protocolMarshaller.marshall(event.getEventType(), EVENTTYPE_BINDING);
              protocolMarshaller.marshall(event.getMetrics(), METRICS_BINDING);
              protocolMarshaller.marshall(event.getSdkName(), SDKNAME_BINDING);
              protocolMarshaller.marshall(event.getSession(), SESSION_BINDING);
              protocolMarshaller.marshall(event.getTimestamp(), TIMESTAMP_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.