updateRole method
Updates a role.
Implementation
Future<void> updateRole(UserRole data) {
assert(data.id != null, 'The id of the role must not be null');
return _apiClient.updateRole(data.id!, data.toJson()).catchError((error) {
_crashlytics?.recordError(error, StackTrace.current);
throw error;
});
}