def b = new Book(title: "The Shining")
b.properties = params
b.save()
properties
Purpose
Allows access to the domain class properties as a Map and is typically used for data binding to perform type conversions allowing properties to be set from request parameters or other Maps.