modifyContact method

Future<EncryptedContact> modifyContact(
  1. String sdkId,
  2. EncryptedContact entity
)

Implementation

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