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