getAllEvents static method

Future<Iterable<Event>> getAllEvents([
  1. ScHttpClient? http
])

Implementation

static Future<Iterable<Event>> getAllEvents([ScHttpClient? http]) async =>
    jsonDecode(await (http ?? ScHttpClient())
            .get('https://api.media.ccc.de/public/events'))['events']
        .map<Event>((c) => Event.fromJson(c));