shareWith method
Implementation
Future<DecryptedReceipt> shareWith(String sdkId, String delegateId, DecryptedReceipt receipt, ReceiptShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"receipt": jsonEncode(DecryptedReceipt.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 DecryptedReceipt.fromJSON(parsedResJson);
}