code: function OneQuestion (q) {
      var self = {}
  
      if (typeof q === 'string') {
        q = Object.assign({}, { question: q })
      } else if (!q || typeof q.question !== 'string') {
        throw new Error('A question is required')
      } else {
        q = Object.assign({}, q)
      }
  
      self.question = q.question
      self.key = q.key || q.question
      self.required = typeof q.required === 'boolean' ? q.required : false
      self.validate = typeof q.validate === 'function' ? q.validate : null
      self.hidden = typeof q.hidden === 'boolean' ? q.hidden : false
      self.defaultValue = q.defaultValue
  
      return self
    }
docs: /Menu