@param null $serialized

@return mixed
493640
public function unserialize($serialized = null)
    {
        if ($this->response) {
            return Strings::unserialize((string) $this->response->getBody());
        }

        return null;
    }
1210072
public function unserialize($serialized)
    {
        $string     = unserialize($serialized, []);
        $this->data = RamseyUUID::fromString($string);
    }
28903
protected function _dataToSerialize($serialize = true)
    {
        if ($serialize === true) {
            $data = array_diff_key(
                $this->viewVars,
                array_flip($this->_specialVars)
            );

            if (empty($data)) {
                return null;
            }

            return $data;
        }

        if (is_array($serialize)) {
            $data = [];
            foreach ($serialize as $alias => $key) {
                if (is_numeric($alias)) {
                    $alias = $key;
                }
                if (array_key_exists($key, $this->viewVars)) {
                    $data[$alias] = $this->viewVars[$key];
                }
            }

            return !empty($data) ? $data : null;
        }

        return isset($this->viewVars[$serialize]) ? $this->viewVars[$serialize] : null;
    }
1046807
public function unserialize($serialized)
    {
        $unserialized = unserialize($serialized);
        $this->id = $unserialized['id'];
        $this->username = $unserialized['username'];
        $this->rolesStringAsArray = $unserialized['roles'];
        $this->groups = new ArrayCollection();
    }
979709
public function unserialize($serialized)
    {
        $entries = explode(':', $serialized, 2);
        $this->bin = null;
        $this->key = null;
        if (count($entries) === 2) {
            list($bin_length, $bin_and_key) = $entries;
            $bin_length = intval($bin_length);
            $this->bin = substr($bin_and_key, 0, $bin_length);
            $this->key = substr($bin_and_key, $bin_length + 1);
        }

        // @TODO: Remove check against false for PHP 7+
        if (false === $this->key || '' === $this->key) {
            $this->key = null;
        }
    }
633157
public function unserialize( $serialized )
   {

      $data = \unserialize( $serialized );

      $this->_hours   = $data[ 'hours'   ] ?? $this->_hours;
      $this->_minutes = $data[ 'minutes' ] ?? $this->_minutes;
      $this->_seconds = $data[ 'seconds' ] ?? $this->_seconds;

   }
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();
    }
741993
public function unserialize($serialized)
    {
        list($this->message, $this->code, $this->file, $this->line) = unserialize($serialized);
    }
619597
public function deserialize(string $serialized, ClassName $className = null)
    {
        $objectsAsArray = $this->decodeJson($serialized);

        if ($className !== null) {
            return $this->setObjectForClass($className, $objectsAsArray);
        }

        return $this->setObject($objectsAsArray);
    }
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']);
        }
    }
93641
public function unserialize($serialized)
    {
        $data = unserialize($serialized);
        $this->inspector = new Inspector($this);
        foreach ($data as $key => $value) {
            $this->$key = $value;
        }
        return $this;
    }
1371600
protected function deserialize($serialized_data)
    {
        switch ($this->serializer) {
            case self::SERIALIZER_JSON:
                break;
            case self::SERIALIZER_PHP:
                //todo not allowed to contain closure
                return Lb::app()->unserialize($serialized_data);
        }

        return $serialized_data;
    }
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;
	}
53505
private function getCommandDefinition(string $serialized): array
    {
        if (\trim($serialized) === '') {
            throw new CommandSerializationException('Malformed JSON serialized command: empty string');
        }

        $definition = \json_decode($serialized, true, 512, static::JSON_DECODE_OPTIONS);

        // @codeCoverageIgnoreStart
        if ($definition === null || \json_last_error() !== \JSON_ERROR_NONE) {
            throw new CommandSerializationException(\sprintf(
                'Command deserialization failed due to error %s: %s',
                \json_last_error(),
                \lcfirst(\json_last_error_msg())
            ));
        }
        // @codeCoverageIgnoreEnd

        if (!\is_array($definition)
            || !isset($definition['class'], $definition['payload'])
            || \count(\array_diff(\array_keys($definition), ['class', 'payload'])) !== 0
            || !\is_string($definition['class'])
            || !\is_array($definition['payload'])
        ) {
            throw new CommandSerializationException('Malformed JSON serialized command');
        }

        return $definition;
    }
912167
final public function unserialize($serialized): void
    {
        $vars = unserialize($serialized, ['allowed_classes' => false]);
        $vars['adviceMethod'] = static::unserializeAdvice($vars['adviceMethod']);
        foreach ($vars as $key => $value) {
            $this->$key = $value;
        }
    }
864188
public function unserialize($serialized)
    {
        $objectData = unserialize($serialized);

        foreach ($objectData as $propertyName => $propertyValue)
        {
            $this->{$propertyName} = $propertyValue;
        }
    }
206336
public function unserialize($serialized)
    {
        /** @var \Ramsey\Uuid\Uuid $uuid */
        $uuid = self::fromString($serialized);
        $this->codec = $uuid->codec;
        $this->numberConverter = $uuid->getNumberConverter();
        $this->fields = $uuid->fields;
    }