/**
  * Create an array containing only the available activity logs property values.
  *
  * @param \Searchperience\Api\Client\Domain\AbstractEntity $activityLogs
  * @return array
  */
 protected function buildRequestArray(\Searchperience\Api\Client\Domain\AbstractEntity $activityLogs)
 {
     $valueArray = array();
     if (!is_null($activityLogs->getId())) {
         $valueArray['id'] = $activityLogs->getId();
     }
     if ($activityLogs->getLogTime() instanceof \DateTime) {
         $valueArray['logTime'] = $this->dateTimeService->getDateStringFromDateTime($activityLogs->getLogTime());
     }
     if (!is_null($activityLogs->getProcessId())) {
         $valueArray['processId'] = $activityLogs->getProcessId();
     }
     if (!is_null($activityLogs->getSeverity())) {
         $valueArray['severity'] = $activityLogs->getSeverity();
     }
     if (!is_null($activityLogs->getMessage())) {
         $valueArray['message'] = $activityLogs->getMessage();
     }
     if (!is_null($activityLogs->getAdditionalData())) {
         $valueArray['additionalData'] = $activityLogs->getAdditionalData();
     }
     if (!is_null($activityLogs->getPackageKey())) {
         $valueArray['packageKey'] = $activityLogs->getPackageKey();
     }
     if (!is_null($activityLogs->getClassName())) {
         $valueArray['className'] = $activityLogs->getClassName();
     }
     if (!is_null($activityLogs->getMethodName())) {
         $valueArray['methodName'] = $activityLogs->getMethodName();
     }
     if (!is_null($activityLogs->getTag())) {
         $valueArray['tag'] = $activityLogs->getTag();
     }
     return $valueArray;
 }