getIsibookReservations method
Future<IsibookReservationsResponse?>
getIsibookReservations({
- required Jiffy date,
- required Jiffy endDate,
Implementation
Future<IsibookReservationsResponse?> getIsibookReservations({
required Jiffy date,
required Jiffy endDate,
}) async {
final intent = HttpIntent("isibook/spaces/reservations", {
"date": date.format(pattern: "yyyy-MM-dd"),
"end_date": endDate.format(pattern: "yyyy-MM-dd"),
});
final req = await HttpRequest().httpRequest(
intent, context: context, "Carico prenotazioni...",
method: HttpMethod.get, dialog: dialog);
_logIsibookCall("getIsibookReservations", intent, req);
if (!elaborateResponse(req)) {
return null;
}
try {
return IsibookReservationsResponse.fromJson(
Map<String, dynamic>.from(req.response));
} catch (e, stack) {
_logIsibookException("getIsibookReservations", e, stack);
return null;
}
}