code: public void marshall(TelemetryRecord telemetryRecord, ProtocolMarshaller protocolMarshaller) {
  
          if (telemetryRecord == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(telemetryRecord.getTimestamp(), TIMESTAMP_BINDING);
              protocolMarshaller.marshall(telemetryRecord.getSegmentsReceivedCount(), SEGMENTSRECEIVEDCOUNT_BINDING);
              protocolMarshaller.marshall(telemetryRecord.getSegmentsSentCount(), SEGMENTSSENTCOUNT_BINDING);
              protocolMarshaller.marshall(telemetryRecord.getSegmentsSpilloverCount(), SEGMENTSSPILLOVERCOUNT_BINDING);
              protocolMarshaller.marshall(telemetryRecord.getSegmentsRejectedCount(), SEGMENTSREJECTEDCOUNT_BINDING);
              protocolMarshaller.marshall(telemetryRecord.getBackendConnectionErrors(), BACKENDCONNECTIONERRORS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.