Method to handle the unserialization of this object.

Implementation of Serializable interface. If descendant private properties
should be unserialized, they need to be visible to this parent (i.e. not private).

@param string $serializedObject
492005
public function unserialize($serializedObject)
    {
        $objectVars = unserialize($serializedObject);

        foreach ($objectVars as $key => $value) {
            $this->{$key} = $value;
        }
    }
482946
public function unserialize($serialized)
    {
        $results = (array)(unserialize($serialized) ?: []);
        $this->_results = SplFixedArray::fromArray($results);
        $this->_useBuffering = true;
        $this->_count = $this->_results->count();
    }
311537
public function unserialize($serialized)
    {
        list($this->messages, $this->isValid) = json_decode($serialized, true);
    }
358314
public function unserialize($serialized)
    {
        list($this->parentAcl,
             $this->objectIdentity,
             $this->classAces,
             $this->classFieldAces,
             $this->objectAces,
             $this->objectFieldAces,
             $this->id,
             $this->loadedSids,
             $this->entriesInheriting
        ) = unserialize($serialized);

        $this->listeners = array();
    }
109020
public function unserialize($serialized)
    {
        list($this->name, $this->value, $this->code, $this->line) = unserialize($serialized);
    }
903553
public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        $this->_data = $data['data'];
        $this->_iteratorClass = $data['iteratorClass'];
        parent::__construct();
    }
133691
public function unserialize($serialized) {
        $data = msgpack_unpack($serialized);
        $this->check        = $data['check'];
        $this->base         = $data['base'];
        $this->index        = $data['index'];
        $this->fail_states  = $data['fail_states'];
        $this->index_count  = $data['index_count'];
        $this->index_code   = $data['index_code'];
        $this->tmp_tree     = $data['tmp_tree'];
        $this->word_states  = $data['word_states'] ?? $data['words_states'];
        $this->begin_used   = $data['begin_used'];
    }
1135308
public function unserialize($serialized) : void
    {
        $doc = DOMDocumentFactory::fromString(unserialize($serialized));
        $this->xml = $doc->documentElement;
        $this->setLocalName($this->xml->localName);
        $this->setNamespaceURI($this->xml->namespaceURI);
    }
197165
public function unserialize($serialized): void
    {
        $this->definitionMap = unserialize($serialized)
            ->mapWithKeys(function (array $node, string $key): array {
                return [$key => AST::fromArray($node)];
            });
    }
652181
public function unserialize($serialized)
    {
        $data = unserialize($serialized, ['']);
        $this->body = $data['body'];
        $this->status = $data['status'];
        $this->headers = $data['headers'];
    }
700598
public function unserialize($serialized)
    {
        $data          = unserialize($serialized);
        $this->results = [];

        /** @noinspection ForeachSourceInspection */
        foreach ($data['results'] as $item) {
            $this->results[] = $item;
        }

        /** @noinspection ForeachSourceInspection */
        foreach ($data['adapters'] as $item) {
            $this->adapters->insert($item['data'], $item['priority']);
        }
    }
109127
public function unserialize($serialized)
    {
        list(
            $this->name,
            $this->params,
            $this->stopPropagation
            ) = \unserialize($serialized, ['allowed_classes' => false]);
    }
234774
public function unserialize($serialized)
    {
        list(
            $this->id,
            $this->username,
            $this->password,
            $this->salt,
            $this->roles
            ) = unserialize($serialized, []);
    }
909440
public function deserialize($serializedObject, $objectClass)
    {
        $result = json_decode($serializedObject, true);

        $article = $this->serializer->deserialize(
            $result['object'],
            $this->articleDocumentClass,
            'json',
            DeserializationContext::create()
                ->setSerializeNull(true)
                ->setGroups(['preview'])
        );

        foreach ($article->getChildren() as $child) {
            $child->setParent($article);
        }

        if (1 === $result['pageNumber']) {
            return $article;
        }

        $children = array_values($article->getChildren());

        $object = $children[$result['pageNumber'] - 2];

        return $object;
    }
568146
public function unserialize($serialized)
    {
        list(
            $this->id,
            $this->email,
            $this->firstName,
            $this->lastName,
            $this->locale,
            $this->timezone,
            $this->gender,
            $this->country,
            $this->phone,
            $this->pictureUrl,
        ) = unserialize($serialized);
    }
1268414
public function unserialize($serialized)
	{
		list(	$this->pemFile,
				$this->passphrase,
				$this->endpointEnv,

				$this->isValidated,
				$this->description,
				$this->validFrom,
				$this->validTo) = unserialize($serialized);

		// Fingerprint should be recalculated
		$this->fingerprint = null;
	}
1045594
public function unserialize($serialized)
    {
        $raw = unserialize($serialized);
        foreach ($this->listProperties() as $propName) {
            if (array_key_exists($propName, $raw)) {
                $this->{$propName} = $raw[$propName];
            }
        }
    }