shareWith method
Implementation
Future<EncryptedReceipt> shareWith(String sdkId, String delegateId, EncryptedReceipt receipt, ReceiptShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.encrypted.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"receipt": jsonEncode(EncryptedReceipt.encode(receipt)),
"options": jsonEncode(options == null ? null : ReceiptShareOptions.encode(options!)),
}
);
if (res == null) throw AssertionError("received null result from platform method shareWith");
final parsedResJson = jsonDecode(res);
return EncryptedReceipt.fromJSON(parsedResJson);
}