public static function castFrom($requestUri, string $requestMethod = null)
    {
        if ($requestUri instanceof self) {
            return $requestUri;
        }

        return new self($requestUri, (string) $requestMethod);
    }