getContact method

Future<EncryptedContact> getContact(
  1. String sdkId,
  2. String entityId
)

Implementation

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