extract method
Produces the value, or the rejection that stops the handler.
Implementation
@override
Future<Result<T, Rejection>> extract(Request request) async {
try {
return Ok(deserialize(request.url.queryParameters));
} on Object catch (error) {
return Err(decodeRejection(error, subject: 'query parameters'));
}
}