getDepartmentsWithUser method
Get all the list of Department from the User.
Implementation
Future<List<Department>> getDepartmentsWithUser(String userId) =>
_apiClient.getDepartmentsWithUser(userId).catchError((error) {
_crashlytics?.recordError(error, StackTrace.current);
throw error;
});