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