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