save method
Persist invoice to the server
Implementation
Future<Invoice> save(Invoice invoice) async {
dynamic response = await WebClient().post(
'${InvoiceNinja.url}/api/v1/shop/invoices',
companyKey: InvoiceNinja.companyKey,
data: invoice.toJson());
return InvoiceItem.fromJson(response).data;
}