src/Serializer/JsonSerializer.php
public function deserialize($message)
    {
        if ($message === null) {
            return null;
        }

        Assertion::string($message, 'The message to deserialize must be a valid string');

        return json_decode($message);
    }
public function deserialize($message)
    {
        if ($message === null) {
            return null;
        }

        Assertion::string($message, 'The message to deserialize must be a valid string');

        return json_decode($message);
    }
@param string $message

@return mixed

@throws AssertionFailedException