FutureResponse extension
Future response extension maps the ResponseExtension methods to the result
of a Future that yields a Response
.
- on
-
- Future<
Response>
- Future<
Properties
- jsonBody → Future
-
Available on Future<
JSON decodedResponse> , provided by the FutureResponse extensionbody
of the request, as a result of a future, as-is.no setter
Methods
-
as<
T> (T f(Map< String, dynamic> e)) → Future<T> -
Available on Future<
Cast the jsonBody as Type by applying the transformation function, as a result of future.Response> , provided by the FutureResponse extension -
asIterable<
T> (T f(Map< String, dynamic> e)) → Future<Iterable< T> > -
Available on Future<
Cast the jsonBody as a lazy Iterable of Type, as a result of a future.Response> , provided by the FutureResponse extension -
asList<
T> (T f(Map< String, dynamic> e)) → Future<List< T> > -
Available on Future<
Cast the jsonBody as a List of Type, as a result of a future.Response> , provided by the FutureResponse extension