deleteUser method

Future<DocIdentifier> deleteUser(
  1. String sdkId,
  2. User user
)

Implementation

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