resetUserRolesInGroup method

Future<User> resetUserRolesInGroup(
  1. String sdkId,
  2. String userId,
  3. String groupId
)

Implementation

Future<User> resetUserRolesInGroup(String sdkId, String userId, String groupId) async {
	final res = await _methodChannel.invokeMethod<String>(
		'UserApi.resetUserRolesInGroup',
		{
			"sdkId": sdkId,
			"userId": jsonEncode(userId),
			"groupId": jsonEncode(groupId),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method resetUserRolesInGroup");
	final parsedResJson = jsonDecode(res);
	return User.fromJSON(parsedResJson);
}