aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/RecipePreview.js
blob: 7a37ccb56cd3f3cd8c382509939fec2c38017fc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// @flow

export default class RecipePreview {
  id = '';

  name = '';

  icon = '';

  featured = false;

  constructor(data) {
    if (!data.id) {
      throw Error('RecipePreview requires Id');
    }

    Object.assign(this, data);
  }
}