dataAsync<T extends Object> method
Returns the asynchronously deserialized response body by calling RestResponse.deserializeBodyAsync after converting the response to RestResponse.
Returns T
by deserializing the response body to it.
The response is deserialized asynchronously in an isolate.
For small response body, try RestResponse.deserializeBody.
Implementation
Future<T?> dataAsync<T extends Object>() {
return _thenRest((restResponse) {
return restResponse.deserializeBodyAsync<T>();
});
}