getUser method

Future<Map<String, dynamic>> getUser(
  1. int hospitalId,
  2. int userId
)

Retrieves data for a specific user within a hospital.

hospitalId The ID of the hospital. userId The ID of the user. Returns a Future<Map<String, dynamic>> containing the user data.

Implementation

Future<Map<String, dynamic>> getUser(int hospitalId, int userId) async {
  return await _makeRequest('/api/hospitals/$hospitalId/users/$userId/');
}