code: public void marshall(EventContextDataType eventContextDataType, ProtocolMarshaller protocolMarshaller) {
  
          if (eventContextDataType == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(eventContextDataType.getIpAddress(), IPADDRESS_BINDING);
              protocolMarshaller.marshall(eventContextDataType.getDeviceName(), DEVICENAME_BINDING);
              protocolMarshaller.marshall(eventContextDataType.getTimezone(), TIMEZONE_BINDING);
              protocolMarshaller.marshall(eventContextDataType.getCity(), CITY_BINDING);
              protocolMarshaller.marshall(eventContextDataType.getCountry(), COUNTRY_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.