getUsers method
Implementation
Future<List<UserVO>> getUsers({
int limit = 50,
DocumentSnapshot? startAt,
}) async {
try {
final userModels = await _usersDataService.getUsers(
limit: limit,
startAt: startAt,
);
final vos = userModels.map((e) {
final vo = UserVO.fromUserModel(e);
return vo;
}).toList();
return vos;
} catch (e) {
if (e is RdevException) {
throw UsersServiceException(
code: e.code, message: e.message, stackTrace: e.stackTrace);
}
throw UsersServiceException(message: e.toString());
}
}