deleteContact method

Future<DocIdentifier> deleteContact(
  1. String sdkId,
  2. Contact contact
)

Implementation

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