QuestionChoice.js 358 B

12345678910111213141516171819
  1. import { Collection, Model } from 'js-abstract-model'
  2. class QuestionChoice extends Model {
  3. constructor (data) {
  4. super(data, [
  5. { key: 'id' },
  6. // { key: 'question' },
  7. { key: 'text' }
  8. ])
  9. }
  10. }
  11. class QuestionChoiceList extends Collection {
  12. model () {
  13. return QuestionChoice
  14. }
  15. }
  16. export { QuestionChoice, QuestionChoiceList }