code: public void marshall(SMSMessage sMSMessage, ProtocolMarshaller protocolMarshaller) {
  
          if (sMSMessage == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(sMSMessage.getBody(), BODY_BINDING);
              protocolMarshaller.marshall(sMSMessage.getKeyword(), KEYWORD_BINDING);
              protocolMarshaller.marshall(sMSMessage.getMessageType(), MESSAGETYPE_BINDING);
              protocolMarshaller.marshall(sMSMessage.getOriginationNumber(), ORIGINATIONNUMBER_BINDING);
              protocolMarshaller.marshall(sMSMessage.getSenderId(), SENDERID_BINDING);
              protocolMarshaller.marshall(sMSMessage.getSubstitutions(), SUBSTITUTIONS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.