fetchAndDisplayHostelReport function
Implementation
Future<void> fetchAndDisplayHostelReport(VtopClient client) async {
try {
print('Fetching hostel outing report...');
final hostelReport = await fetchHostelReport(client: client);
print('✓ Hostel outing report retrieved:');
print('\n=== HOSTEL OUTING REPORT JSON ===');
print(const JsonEncoder.withIndent(' ').convert(hostelReport.toJson()));
print('');
} catch (e) {
print('Error fetching hostel report: $e\n');
}
}