load method

Future<List<Product>> load()

Load list of products

Implementation

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

  return ProductList.fromJson(response).data;
}