deleteContacts method

Future<List<DocIdentifier>> deleteContacts(
  1. String sdkId,
  2. List<Contact> contacts
)

Implementation

Future<List<DocIdentifier>> deleteContacts(String sdkId, List<Contact> contacts) async {
	final res = await _methodChannel.invokeMethod<String>(
		'ContactBasicApi.deleteContacts',
		{
			"sdkId": sdkId,
			"contacts": jsonEncode(contacts.map((x0) => Contact.encode(x0)).toList()),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method deleteContacts");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as List<dynamic>).map((x1) => DocIdentifier.fromJSON(x1) ).toList();
}