title: Get all getters results as class variables without specific invoking
body: <p>Is there a way I can get all the getters results on the instance without specific invoking?
  I want to get all class getters as simple members on the class by looping on the class member.</p>
  <p>I have a class like this:</p>
  <pre><code>export class Test {
    constructor() {}
  
    get foo() {
      return 1
    }
  
    get bar() {
      return 2
    }
  }
  </code></pre>
  <p>The use is create a new instance: <code>const test = new Test()</code></p>
  <p>Is there a way I can get all the getters as simple class variable members and not as functions? so I can pass the object from server to client.</p>
  <p>Thanks!</p>