fetchEnableLogs method

void fetchEnableLogs()

Implementation

void fetchEnableLogs() {
  _httpService.fetchEnableLogs().then((data) {
    if (data.statusCode >= 200 && data.statusCode < 300) {
      final body = json.decode(data.body);
      List list1 = body['hydra:member'];
      var list = list1.map((e) => e['logName'].toString()).toList();
      global_vars.enabledLogsList = list;
    } else {
      global_vars.enabledLogsList = [];
    }
  });
}