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