code: public void marshall(StreamRecord streamRecord, ProtocolMarshaller protocolMarshaller) {
  
          if (streamRecord == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(streamRecord.getApproximateCreationDateTime(), APPROXIMATECREATIONDATETIME_BINDING);
              protocolMarshaller.marshall(streamRecord.getKeys(), KEYS_BINDING);
              protocolMarshaller.marshall(streamRecord.getNewImage(), NEWIMAGE_BINDING);
              protocolMarshaller.marshall(streamRecord.getOldImage(), OLDIMAGE_BINDING);
              protocolMarshaller.marshall(streamRecord.getSequenceNumber(), SEQUENCENUMBER_BINDING);
              protocolMarshaller.marshall(streamRecord.getSizeBytes(), SIZEBYTES_BINDING);
              protocolMarshaller.marshall(streamRecord.getStreamViewType(), STREAMVIEWTYPE_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.