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