Tons of frameworks use beans. Saying we don’t use beans much anymore doesn’t make any sense. They’re used all over the place.
Opiop said this was a data class for a web application. I’d be willing to bet that it requires a bean.
And more than that, you have to think about readability and maintainability. A simple bean class with fields, getters, and setters is instantly understandable, and it’s hard to mess up. A custom implementation with a Map is much more needlessly complicated. Other people working on the code are going to need to understand how your map works (Is it keyed off String values? If so what happens if I add a String key to it that wasn’t originally in the class? What are the default values?), versus simply looking at what getters and setters are available. The possibility of having somebody screw the code up is increased with a Map, and people will look at you funny and ask what specific technical reason you had for switching the implementation. “I didn’t like the way the code looked” isn’t really a valid reason.
There are valid reasons to use a Map, but I think it’s incorrect to say “nobody uses beans, just use a map”. I would argue the opposite of you: unless there’s a real reason to NOT have it as a bean, you should just use a bean.