getList method
Get users
Implementation
Future<List<UserEntity>> getList() async {
// query
final response = await dio.request('/api/users');
// mapper
return List<UserEntity>.from(response.data.map((x) => UserEntity.fromJson(x)));
}
Get users
Future<List<UserEntity>> getList() async {
// query
final response = await dio.request('/api/users');
// mapper
return List<UserEntity>.from(response.data.map((x) => UserEntity.fromJson(x)));
}