load method

Future<List<Credit>> load()

Load list of credits

Implementation

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

  return CreditList.fromJson(response).data;
}