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