code: public void marshall(CreateRouteRequest createRouteRequest, ProtocolMarshaller protocolMarshaller) {
  
          if (createRouteRequest == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(createRouteRequest.getApiId(), APIID_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getApiKeyRequired(), APIKEYREQUIRED_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getAuthorizationScopes(), AUTHORIZATIONSCOPES_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getAuthorizationType(), AUTHORIZATIONTYPE_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getAuthorizerId(), AUTHORIZERID_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getModelSelectionExpression(), MODELSELECTIONEXPRESSION_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getOperationName(), OPERATIONNAME_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getRequestModels(), REQUESTMODELS_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getRequestParameters(), REQUESTPARAMETERS_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getRouteKey(), ROUTEKEY_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getRouteResponseSelectionExpression(), ROUTERESPONSESELECTIONEXPRESSION_BINDING);
              protocolMarshaller.marshall(createRouteRequest.getTarget(), TARGET_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.