load method

Future<List<Client>> load()

Load list of clients

Implementation

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

  return ClientList.fromJson(response).data;
}