fetchJokesApiRequest method Null safety
Implementation
Future<Map<String, dynamic>> fetchJokesApiRequest() async {
try {
final res = await _dioClient.get(Endpoints.jokes);
return res.data;
} catch (e) {
rethrow;
}
}
Future<Map<String, dynamic>> fetchJokesApiRequest() async {
try {
final res = await _dioClient.get(Endpoints.jokes);
return res.data;
} catch (e) {
rethrow;
}
}