shareWithMany method

Future<EncryptedContact> shareWithMany(
  1. String sdkId,
  2. EncryptedContact contact,
  3. Map<String, ContactShareOptions> delegates
)

Implementation

Future<EncryptedContact> shareWithMany(String sdkId, EncryptedContact contact, Map<String, ContactShareOptions> delegates) async {
	final res = await _methodChannel.invokeMethod<String>(
		'ContactApi.encrypted.shareWithMany',
		{
			"sdkId": sdkId,
			"contact": jsonEncode(EncryptedContact.encode(contact)),
			"delegates": jsonEncode(delegates.map((k0, v0) => MapEntry(k0, ContactShareOptions.encode(v0)))),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method shareWithMany");
	final parsedResJson = jsonDecode(res);
	return EncryptedContact.fromJSON(parsedResJson);
}