listGroupUsers method
Future<GroupUserList>
listGroupUsers({
- required Session session,
- required String groupId,
- String? cursor,
- int limit = defaultLimit,
- GroupMembershipState? state,
override
Listing the user’s groups
Players can list groups they are a member of.
Implementation
@override
Future<model.GroupUserList> listGroupUsers({
required model.Session session,
required String groupId,
String? cursor,
int limit = defaultLimit,
GroupMembershipState? state,
}) async {
_session = session;
final res = await _api.v2GroupGroupIdUserGet(
groupId: groupId,
cursor: cursor,
limit: limit,
state: state?.index,
);
return model.GroupUserList.fromJson(res.body!.toJson());
}