deleteUserInGroup method

Future<DocIdentifier> deleteUserInGroup(
  1. String sdkId,
  2. String groupId,
  3. User user
)

Implementation

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