protected function provideFromRequest(RequestInterface $request, string $field) : string
    {
        Assert::isInstanceOf($request, ServerRequest::class);

        $data = $request->getData();

        $result = is_array($data) && array_key_exists($field, $data) ? (string)$data[$field] : '';

        return $result;
    }