shareWithMany method

Future<EncryptedInvoice> shareWithMany(
  1. String sdkId,
  2. EncryptedInvoice invoice,
  3. Map<String, InvoiceShareOptions> delegates
)

Implementation

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