getMatchingUsers method

Future<List<UserGroup>> getMatchingUsers(
  1. String sdkId
)

Implementation

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