code: public void marshall(Service service, ProtocolMarshaller protocolMarshaller) {
  
          if (service == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(service.getReferenceId(), REFERENCEID_BINDING);
              protocolMarshaller.marshall(service.getName(), NAME_BINDING);
              protocolMarshaller.marshall(service.getNames(), NAMES_BINDING);
              protocolMarshaller.marshall(service.getRoot(), ROOT_BINDING);
              protocolMarshaller.marshall(service.getAccountId(), ACCOUNTID_BINDING);
              protocolMarshaller.marshall(service.getType(), TYPE_BINDING);
              protocolMarshaller.marshall(service.getState(), STATE_BINDING);
              protocolMarshaller.marshall(service.getStartTime(), STARTTIME_BINDING);
              protocolMarshaller.marshall(service.getEndTime(), ENDTIME_BINDING);
              protocolMarshaller.marshall(service.getEdges(), EDGES_BINDING);
              protocolMarshaller.marshall(service.getSummaryStatistics(), SUMMARYSTATISTICS_BINDING);
              protocolMarshaller.marshall(service.getDurationHistogram(), DURATIONHISTOGRAM_BINDING);
              protocolMarshaller.marshall(service.getResponseTimeHistogram(), RESPONSETIMEHISTOGRAM_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.