return array_filter([ 'id' => Uuid::
randomHex(),
'company' =>
$address->
getCompany(),
'department' =>
$address->
getDepartment(),
'salutationId' =>
$address->
getSalutationId(),
'title' =>
$address->
getTitle(),
'firstName' =>
$address->
getFirstName(),
'lastName' =>
$address->
getLastName(),
'street' =>
$address->
getStreet(),
'zipcode' =>
$address->
getZipcode(),
'city' =>
$address->
getCity(),
'phoneNumber' =>
$address->
getPhoneNumber(),
'additionalAddressLine1' =>
$address->
getAdditionalAddressLine1(),
'additionalAddressLine2' =>
$address->
getAdditionalAddressLine2(),
'countryId' =>
$address->
getCountryId(),
'countryStateId' =>
$address->
getCountryStateId(),
'customFields' =>
$address->
getCustomFields(),
]);
}}