code: public void marshall(SegmentDemographics segmentDemographics, ProtocolMarshaller protocolMarshaller) {
  
          if (segmentDemographics == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(segmentDemographics.getAppVersion(), APPVERSION_BINDING);
              protocolMarshaller.marshall(segmentDemographics.getChannel(), CHANNEL_BINDING);
              protocolMarshaller.marshall(segmentDemographics.getDeviceType(), DEVICETYPE_BINDING);
              protocolMarshaller.marshall(segmentDemographics.getMake(), MAKE_BINDING);
              protocolMarshaller.marshall(segmentDemographics.getModel(), MODEL_BINDING);
              protocolMarshaller.marshall(segmentDemographics.getPlatform(), PLATFORM_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.