getDays method
Returns a list of all currently available days for a given canteen with optional pagination parameters.
Implementation
Future<List<Day>> getDays(int canteenId, {int? page, int? limit}) async =>
parseList(
await getResponse(
'canteens/$canteenId/days',
page: page,
limit: limit,
),
Day.fromJson,
);