getUsersInGroup method

Future<List<User>> getUsersInGroup(
  1. String sdkId,
  2. String groupId,
  3. List<String> userIds
)

Implementation

Future<List<User>> getUsersInGroup(String sdkId, String groupId, List<String> userIds) async {
	final res = await _methodChannel.invokeMethod<String>(
		'UserApi.getUsersInGroup',
		{
			"sdkId": sdkId,
			"groupId": jsonEncode(groupId),
			"userIds": jsonEncode(userIds.map((x0) => x0).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method getUsersInGroup");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => User.fromJSON(x1) ).toList();
}