getUsers method
- int hospitalId
Retrieves a list of users for a specific hospital.
hospitalId
The ID of the hospital.
Returns a Future<Map<String, dynamic>>
containing a list of user data.
Implementation
Future<Map<String, dynamic>> getUsers(int hospitalId) async {
return await _makeRequest('/api/hospitals/$hospitalId/users/');
}