deleteUserInGroupById method

Future<DocIdentifier> deleteUserInGroupById(
  1. String sdkId,
  2. String groupId,
  3. String entityId,
  4. String rev,
)

Implementation

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