load method

Future<Company> load()

Load profile

Implementation

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

  return CompanyItem.fromJson(response).data;
}