getIsibookMyReservations method
Implementation
Future<IsibookMyReservationsResponse?> getIsibookMyReservations(
{int page = 1, int perPage = 10}) async {
final intent = HttpIntent(
"isibook/spaces/my_reservations", {"page": page, "per_page": perPage});
final req = await HttpRequest().httpRequest(
intent, context: context, "Carico mie prenotazioni...",
method: HttpMethod.get, dialog: dialog);
_logIsibookCall("getIsibookMyReservations", intent, req);
if (!elaborateResponse(req)) {
return null;
}
try {
return IsibookMyReservationsResponse.fromJson(
Map<String, dynamic>.from(req.response));
} catch (e, stack) {
_logIsibookException("getIsibookMyReservations", e, stack);
return null;
}
}