get method
Send a GET web request
Implementation
Future<dynamic> get(String url, {String? companyKey, String? token}) async {
_checkInitialized();
final http.Response response = await http.Client().get(
Uri.parse(url),
headers: _getHeaders(companyKey: companyKey, token: token),
);
if (InvoiceNinja.debugEnabled == true ||
InvoiceNinjaAdmin.debugEnabled == true) {
_printWrapped('Invoice Ninja [GET] $url\n${response.body}');
}
_checkResponse(response);
return json.decode(response.body);
}