fetchJokesApiRequest method Null safety

Future<Map<String, dynamic>> fetchJokesApiRequest()

Implementation

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