For example, instance of the following following class produces string A(x:7, values:[hello, world])
@ToString( includeNames=true )
class A {
def x
def values = []
}
How can I transform this String back to an instance of the class?
For example, instance of the following following class produces string A(x:7, values:[hello, world])
@ToString( includeNames=true )
class A {
def x
def values = []
}
How can I transform this String back to an instance of the class?
Based on the comments by @cfrick, this is not possible.
(Answering my own question for the sake of closing this topic.)