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