I have a class which has named constructor and I want to pass variable and eval the result as a class variable how can I achieve it like in javascript we have object literals an