ping method
Retrieves the Pi-hole status.
Implementation
@override
Future<PiholeStatus> ping(CancelToken cancelToken) async {
try {
final data = await _get({'status': ''}, cancelToken);
final status = PiholeStatusModel.fromJson(data);
return status.entity;
} on DioError catch (e) {
throw _onDioError(e);
}
}