Sometimes it is helpful to use a Map for fast prototyping of classes with some properties but without any logic. But in the end it would be nice to have a real class. In IntelliJ IDEA you can get it by invoking “Convert Map to Class” intention on a map.
You only need to type a name and a package for a new class:
And you’ll get something like this…
Quick and easy, right?