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