resetUserRoles method

Future<User> resetUserRoles(
  1. String sdkId,
  2. String userId
)

Implementation

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