code: public void marshall(PublicEndpoint publicEndpoint, ProtocolMarshaller protocolMarshaller) {
  
          if (publicEndpoint == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(publicEndpoint.getAddress(), ADDRESS_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getAttributes(), ATTRIBUTES_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getChannelType(), CHANNELTYPE_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getDemographic(), DEMOGRAPHIC_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getEffectiveDate(), EFFECTIVEDATE_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getEndpointStatus(), ENDPOINTSTATUS_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getLocation(), LOCATION_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getMetrics(), METRICS_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getOptOut(), OPTOUT_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getRequestId(), REQUESTID_BINDING);
              protocolMarshaller.marshall(publicEndpoint.getUser(), USER_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.