load method

Future<List<Product>> load()

Load list of products

Implementation

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

  return ProductList.fromJson(response).data;
}