title: How to expose a method using GSon?
body: <p>Using Play Framework, I serialize my models via GSON. I specify which fields are exposed and which aren't.</p>
  
  <p>This works great but I'd also like to @expose method too. Of course, this is too simple.</p>
  
  <p>How can I do it ?</p>
  
  <p>Thanks for your help !</p>
  
  <pre><code>public class Account extends Model {
      @Expose
      public String username;
  
      @Expose
      public String email;
  
      public String password;
  
      @Expose // Of course, this don't work
      public String getEncodedPassword() {
          // ...
      }
  }
  </code></pre>