save method

Future<Client> save(
  1. Client client
)

Persist client to the server

Implementation

Future<Client> save(Client client) async {
  dynamic response = await WebClient().post(
      '${InvoiceNinja.url}/api/v1/shop/clients',
      companyKey: InvoiceNinja.companyKey,
      data: client.toJson());

  return ClientItem.fromJson(response).data;
}