code: function DevicesResponse(jsonAnswer) {
      var data = JSON.parse(jsonAnswer);
      data = data.result.devices;
  
      var devices = [];
      if (Array.isArray(data)) {
          data.forEach(function (value) {
              devices.push(createDevice(value.key, value.name, value.children));
          });
      }
  
      /**
       * @property devices
       * @type {Array}
       */
      this.devices = devices;
  }
docs: Implementation 
  @class DevicesResponse
  @constructor
  @param {String} jsonAnswer