matchUsersInGroupBy method

Future<List<String>> matchUsersInGroupBy(
  1. String sdkId,
  2. String groupId,
  3. BaseFilterOptions<User> filter
)

Implementation

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