modifyContact method

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

Implementation

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