I have the following:
class Here {
public id: string = "here"
public dao: string = "good"
good(): void {
}
}
In the good
function, I need to write a code that returns the keys and values of public variables of Here
. Since this is assemblyscript, It's really hard. I don't want to repeat id
and dao
in good
since this is easy example. In the real world, I got 20 public variables and repeating them 2 times is horrible.
Any idea ? I'd highly appreciate it.