findByKey method

Future<Client> findByKey(
  1. String key
)

Find a client by its contact key

Implementation

Future<Client> findByKey(String key) async {
  final response = await WebClient().get(
      '${InvoiceNinja.url}/api/v1/shop/client/$key',
      companyKey: InvoiceNinja.companyKey);

  return ClientItem.fromJson(response).data;
}