fetchAuthors static method
Implementation
static Future<List<Author>> fetchAuthors() async {
final response = await _dio.get(ApiRoutes.users);
final List<dynamic> json = response.data['items'];
final items = json.map((e) => Author.fromJson(e)).toList();
return items;
}