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