code: function () {
      var obj = {}, value;
  
      var keys = Object.keys(this);
  
      for (var i = 0, n = keys.length; i < n; i++) {
        var key = keys[i];
        if (key.substr(0, 2) === "__") continue;
        value = this[key];
  
        if(value && value.__isBindable) {
          value = value.toJSON();
        }
  
        obj[key] = value;
      }
  
      return obj;
    }
docs: Converts the context to a JSON object
  @method toJSON