code: function() {
              var obj = Kinetic.Node.prototype.toObject.call(this);
  
              obj.children = [];
  
              var children = this.getChildren();
              var len = children.length;
              for(var n = 0; n < len; n++) {
                  var child = children[n];
                  obj.children.push(child.toObject());
              }
  
              return obj;
          }
docs: extenders