I have method
Is there a way to call a method like the one above with some kind of map as parameter instead of single parameters?
Maybe I missed something, but I don't think Groovy has named parameters right now. There are discussions and proposals, but I'm not aware of anything official. For your case, I think the map spread may help, but not in every case. Upon getting the values, it follows the order in which the map values were declared:
* [ GroovyGN ] Turn Methods into Closures
* [ Groovy Doc ] Dynamic Groovy
* [ In Action ] Dynamic object orientation - Defining classes and scripts