modifyContacts method

Future<List<Contact>> modifyContacts(
  1. String sdkId,
  2. List<Contact> entities
)

Implementation

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