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