Non-nullable versions of ids.
List<Object> get idsNotNull => ids?.where((e) => e != null).whereType<Object>().toList() ?? <Object>[];