code: public void marshall(StageState stageState, ProtocolMarshaller protocolMarshaller) {
  
          if (stageState == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(stageState.getStageName(), STAGENAME_BINDING);
              protocolMarshaller.marshall(stageState.getInboundTransitionState(), INBOUNDTRANSITIONSTATE_BINDING);
              protocolMarshaller.marshall(stageState.getActionStates(), ACTIONSTATES_BINDING);
              protocolMarshaller.marshall(stageState.getLatestExecution(), LATESTEXECUTION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.