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