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