code: public void marshall(GameSession gameSession, ProtocolMarshaller protocolMarshaller) {
  
          if (gameSession == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(gameSession.getGameSessionId(), GAMESESSIONID_BINDING);
              protocolMarshaller.marshall(gameSession.getName(), NAME_BINDING);
              protocolMarshaller.marshall(gameSession.getFleetId(), FLEETID_BINDING);
              protocolMarshaller.marshall(gameSession.getCreationTime(), CREATIONTIME_BINDING);
              protocolMarshaller.marshall(gameSession.getTerminationTime(), TERMINATIONTIME_BINDING);
              protocolMarshaller.marshall(gameSession.getCurrentPlayerSessionCount(), CURRENTPLAYERSESSIONCOUNT_BINDING);
              protocolMarshaller.marshall(gameSession.getMaximumPlayerSessionCount(), MAXIMUMPLAYERSESSIONCOUNT_BINDING);
              protocolMarshaller.marshall(gameSession.getStatus(), STATUS_BINDING);
              protocolMarshaller.marshall(gameSession.getStatusReason(), STATUSREASON_BINDING);
              protocolMarshaller.marshall(gameSession.getGameProperties(), GAMEPROPERTIES_BINDING);
              protocolMarshaller.marshall(gameSession.getIpAddress(), IPADDRESS_BINDING);
              protocolMarshaller.marshall(gameSession.getPort(), PORT_BINDING);
              protocolMarshaller.marshall(gameSession.getPlayerSessionCreationPolicy(), PLAYERSESSIONCREATIONPOLICY_BINDING);
              protocolMarshaller.marshall(gameSession.getCreatorId(), CREATORID_BINDING);
              protocolMarshaller.marshall(gameSession.getGameSessionData(), GAMESESSIONDATA_BINDING);
              protocolMarshaller.marshall(gameSession.getMatchmakerData(), MATCHMAKERDATA_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.