DonationCategory.js 397 B

1234567891011121314151617181920
  1. import { Collection, Model } from 'js-abstract-model'
  2. class DonationCategory extends Model {
  3. constructor (data) {
  4. super(data, [
  5. { key: 'id' },
  6. { key: 'title' },
  7. { key: 'thumbnail' },
  8. { key: 'description' }
  9. ])
  10. }
  11. }
  12. class DonationCategoryList extends Collection {
  13. model () {
  14. return DonationCategory
  15. }
  16. }
  17. export { DonationCategory, DonationCategoryList }