modifyReceipt method
Implementation
Future<Receipt> modifyReceipt(String sdkId, Receipt entity) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.tryAndRecover.modifyReceipt',
{
"sdkId": sdkId,
"entity": jsonEncode(Receipt.encode(entity)),
}
);
if (res == null) throw AssertionError("received null result from platform method modifyReceipt");
final parsedResJson = jsonDecode(res);
return Receipt.fromJSON(parsedResJson);
}