var ShConfig = ShConfig||{}; ShConfig.Selected = function(){ this.update(); }; ShConfig.Selected.prototype.update = function(){ this.json = JSON.stringify(this.getForWatch()); }; ShConfig.Selected.prototype.getForWatch = function(){ return { size: this.size, consumption: this.consumption, resource: this.resource, managementPort: this.managementPort, ipv4: this.ipv4, ipv6: this.ipv6, connectivity: this.connectivity, ipKvm: this.ipKvm, tariffResourceCode: this.tariffResourceCode, }; };