fetchAndDisplayStudentProfile function

Future<void> fetchAndDisplayStudentProfile(
  1. VtopClient client
)

Implementation

Future<void> fetchAndDisplayStudentProfile(VtopClient client) async {
  try {
    print('Fetching student profile...');
    final profile = await fetchStudentProfile(client: client);

    print('✓ Student profile retrieved successfully:');
    print('\n=== STUDENT PROFILE JSON ===');
    print(const JsonEncoder.withIndent('  ').convert(profile.toJson()));
    print('');
  } catch (e) {
    print('Error fetching student profile: $e\n');
  }
}