code: public void marshall(SearchRequest searchRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (searchRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(searchRequest.getResource(), RESOURCE_BINDING);
              protocolMarshaller.marshall(searchRequest.getSearchExpression(), SEARCHEXPRESSION_BINDING);
              protocolMarshaller.marshall(searchRequest.getSortBy(), SORTBY_BINDING);
              protocolMarshaller.marshall(searchRequest.getSortOrder(), SORTORDER_BINDING);
              protocolMarshaller.marshall(searchRequest.getNextToken(), NEXTTOKEN_BINDING);
              protocolMarshaller.marshall(searchRequest.getMaxResults(), MAXRESULTS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.