getUsersByTag method
Implementation
Future<List<QBUser?>> getUsersByTag(List<String> tags, {int page = 1, int perPage = 100}) async {
Map<String, Object> data = Map();
data["tags"] = tags;
data["page"] = page;
data["perPage"] = perPage;
Map<Object?, Object?> map = await _usersModule.invokeMethod(GET_METHOD_BY_TAG, data);
List<Object?> list = map["users"] as List<Object?>;
List<QBUser?> userList = [];
for (final item in list) {
QBUser? qbUser = QBUserMapper.mapToQBUser(item as Map<dynamic, dynamic>);
userList.add(qbUser);
}
return userList;
}