logReceipt method
Implementation
Future<Receipt> logReceipt(String sdkId, User user, String docId, List<String> refs, String blobType, Uint8List blob) async {
final res = await _methodChannel.invokeMethod<String>(
'ReceiptApi.logReceipt',
{
"sdkId": sdkId,
"user": jsonEncode(User.encode(user)),
"docId": jsonEncode(docId),
"refs": jsonEncode(refs.map((x0) => x0).toList()),
"blobType": jsonEncode(blobType),
"blob": jsonEncode(base64Encode(blob as List<int>)),
}
);
if (res == null) throw AssertionError("received null result from platform method logReceipt");
final parsedResJson = jsonDecode(res);
return Receipt.fromJSON(parsedResJson);
}