public static function fromModel(SsoModel $sso) { $instance = new self(unserialize($sso->getData())); return $instance; }