getAllInvitations method
Get all invitations
Implementation
Future<List<Invitation>> getAllInvitations() async {
try {
final response = await dio.get(
"/organization/list-invitations",
options: await getOptions(isTokenRequired: true),
);
return response.data.map((e) => Invitation.fromJson(e)).toList();
} catch (e) {
final message = getErrorMessage(e);
if (message == null) rethrow;
throw message;
}
}