compute<T> abstract method
A Dio fetch call needs to be computed to extract data or resolve to an ApiError. You are responsible of your compute logic as it should match with your needs.
Implementation
Future<T> compute<T>(
Future<Response> request, {
String? mapperKey,
T Function(Map<String, dynamic>)? mapper,
T Function(String)? messageMapper,
}
);