code: public void marshall(Session session, ProtocolMarshaller protocolMarshaller) {
  
          if (session == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(session.getId(), ID_BINDING);
              protocolMarshaller.marshall(session.getUserId(), USERID_BINDING);
              protocolMarshaller.marshall(session.getStackName(), STACKNAME_BINDING);
              protocolMarshaller.marshall(session.getFleetName(), FLEETNAME_BINDING);
              protocolMarshaller.marshall(session.getState(), STATE_BINDING);
              protocolMarshaller.marshall(session.getConnectionState(), CONNECTIONSTATE_BINDING);
              protocolMarshaller.marshall(session.getStartTime(), STARTTIME_BINDING);
              protocolMarshaller.marshall(session.getMaxExpirationTime(), MAXEXPIRATIONTIME_BINDING);
              protocolMarshaller.marshall(session.getAuthenticationType(), AUTHENTICATIONTYPE_BINDING);
              protocolMarshaller.marshall(session.getNetworkAccessConfiguration(), NETWORKACCESSCONFIGURATION_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.