undeleteContact method

Future<DecryptedContact> undeleteContact(
  1. String sdkId,
  2. Contact contact
)

Implementation

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