openmensa library

Classes

Canteen
Models a canteen containing information about its metadata.
Day
Models a day containing information about whether a canteen is closed or not.
DayMenu
Models a day menu containing information about a day and the daily available meals.
Meal
Models a meal containing information about its metadata.
OpenMensaAPI
Provides simple access to OpenMensa's API services.

Constants

API_BASE_PATH → const String
OpenMensa's API base endpoint.
API_BASE_URL → const String
OpenMensa's API base URL.
HTTP_OKAY → const int
The HTTP status code for OK messages.

Functions

parseDecodedList<T>(dynamic decoded, JsonParser<T> parser) List<T>
Parses a list from the given decoded JSON using the given parser.
parseDecodedObject<T>(dynamic decoded, JsonParser<T> parser) → T?
Parses an object from the given decoded JSON using the given parser.
parseList<T>(String source, JsonParser<T> parser) List<T>
Parses a list from the given JSON string using the given parser.
parseObject<T>(String source, JsonParser<T> parser) → T?
Parses an object from the given JSON string using the given parser.

Typedefs

JsonParser<T> = T Function(dynamic input)
The type for a JSON to object parser.