code: public void marshall(LogStream logStream, ProtocolMarshaller protocolMarshaller) {
  
          if (logStream == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(logStream.getLogStreamName(), LOGSTREAMNAME_BINDING);
              protocolMarshaller.marshall(logStream.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(logStream.getFirstEventTimestamp(), FIRSTEVENTTIMESTAMP_BINDING);
              protocolMarshaller.marshall(logStream.getLastEventTimestamp(), LASTEVENTTIMESTAMP_BINDING);
              protocolMarshaller.marshall(logStream.getLastIngestionTime(), LASTINGESTIONTIME_BINDING);
              protocolMarshaller.marshall(logStream.getUploadSequenceToken(), UPLOADSEQUENCETOKEN_BINDING);
              protocolMarshaller.marshall(logStream.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(logStream.getStoredBytes(), STOREDBYTES_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.