public function restoreFromState($stateData)
    {
        $publicProperties = $this->getExposableModelProperties();

        foreach ($publicProperties as $key) {
            if (isset($stateData[$key])) {
                $this->$key = $stateData[$key];
            }
        }
    }