We are using kotlin dsl to as a user friendly builder to take input and generate data. Is there a way to do the opposite of that ? ie, convert existing data into dsl ?
Can this kotlin representation be converted to dsl ?
val person = Person("John", 25)
val person = person {
name = "John"
age = 25
}