getDay method

Future<Day?> getDay(
  1. int canteenId,
  2. String dayDate
)

Returns a day object for the given canteen ID and date.

Implementation

Future<Day?> getDay(int canteenId, String dayDate) async => parseObject(
      await getResponse('canteens/$canteenId/days/$dayDate'),
      Day.fromJson,
    );