private function convertModelToDataPropertyArray(ModelInterface $model, $timestamp = 0)
    {
        $data = [];
        foreach ($model as $key => $value) {
            if ($key === $this->idProperty) {
                continue;
            }

            if (\is_array($value)) {
                $data[$this->source . '.' . $key] = \serialize($value);
            } else {
                $data[$this->source . '.' . $key] = $value;
            }
        }

        if ($this->timeStampProperty) {
            $data[$this->source . '.' . $this->getTimeStampProperty()] = $timestamp ?: \time();
        }

        return $data;
    }