code: public void marshall(Stack stack, ProtocolMarshaller protocolMarshaller) {
  
          if (stack == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(stack.getArn(), ARN_BINDING);
              protocolMarshaller.marshall(stack.getName(), NAME_BINDING);
              protocolMarshaller.marshall(stack.getDescription(), DESCRIPTION_BINDING);
              protocolMarshaller.marshall(stack.getDisplayName(), DISPLAYNAME_BINDING);
              protocolMarshaller.marshall(stack.getCreatedTime(), CREATEDTIME_BINDING);
              protocolMarshaller.marshall(stack.getStorageConnectors(), STORAGECONNECTORS_BINDING);
              protocolMarshaller.marshall(stack.getRedirectURL(), REDIRECTURL_BINDING);
              protocolMarshaller.marshall(stack.getFeedbackURL(), FEEDBACKURL_BINDING);
              protocolMarshaller.marshall(stack.getStackErrors(), STACKERRORS_BINDING);
              protocolMarshaller.marshall(stack.getUserSettings(), USERSETTINGS_BINDING);
              protocolMarshaller.marshall(stack.getApplicationSettings(), APPLICATIONSETTINGS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.