getRoles method

Future<Map<String, dynamic>> getRoles(
  1. 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/');
}