code: public void marshall(ContactDetail contactDetail, ProtocolMarshaller protocolMarshaller) {
  
          if (contactDetail == null) {
              throw new SdkClientException("Invalid argument passed to marshall(...)");
          }
  
          try {
              protocolMarshaller.marshall(contactDetail.getFirstName(), FIRSTNAME_BINDING);
              protocolMarshaller.marshall(contactDetail.getLastName(), LASTNAME_BINDING);
              protocolMarshaller.marshall(contactDetail.getContactType(), CONTACTTYPE_BINDING);
              protocolMarshaller.marshall(contactDetail.getOrganizationName(), ORGANIZATIONNAME_BINDING);
              protocolMarshaller.marshall(contactDetail.getAddressLine1(), ADDRESSLINE1_BINDING);
              protocolMarshaller.marshall(contactDetail.getAddressLine2(), ADDRESSLINE2_BINDING);
              protocolMarshaller.marshall(contactDetail.getCity(), CITY_BINDING);
              protocolMarshaller.marshall(contactDetail.getState(), STATE_BINDING);
              protocolMarshaller.marshall(contactDetail.getCountryCode(), COUNTRYCODE_BINDING);
              protocolMarshaller.marshall(contactDetail.getZipCode(), ZIPCODE_BINDING);
              protocolMarshaller.marshall(contactDetail.getPhoneNumber(), PHONENUMBER_BINDING);
              protocolMarshaller.marshall(contactDetail.getEmail(), EMAIL_BINDING);
              protocolMarshaller.marshall(contactDetail.getFax(), FAX_BINDING);
              protocolMarshaller.marshall(contactDetail.getExtraParams(), EXTRAPARAMS_BINDING);
          } catch (Exception e) {
              throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
          }
      }
docs: Marshall the given parameter object.