findById method

Future<Client?> findById(
  1. String id
)

Find client by its id

Implementation

Future<Client?> findById(String id) async {
  final response = await WebClient().get(
      '${InvoiceNinjaAdmin.url}/api/v1/clients/$id',
      token: InvoiceNinjaAdmin.token);

  return ClientItem.fromJson(response).data;
}