code: public void marshall(InventoryItem inventoryItem, ProtocolMarshaller protocolMarshaller) {
  
          if (inventoryItem == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(inventoryItem.getTypeName(), TYPENAME_BINDING);
              protocolMarshaller.marshall(inventoryItem.getSchemaVersion(), SCHEMAVERSION_BINDING);
              protocolMarshaller.marshall(inventoryItem.getCaptureTime(), CAPTURETIME_BINDING);
              protocolMarshaller.marshall(inventoryItem.getContentHash(), CONTENTHASH_BINDING);
              protocolMarshaller.marshall(inventoryItem.getContent(), CONTENT_BINDING);
              protocolMarshaller.marshall(inventoryItem.getContext(), CONTEXT_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.