diff options
Diffstat (limited to 'src/models/RecipePreview.js')
-rw-r--r-- | src/models/RecipePreview.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/models/RecipePreview.js b/src/models/RecipePreview.js deleted file mode 100644 index 6a9ce3080..000000000 --- a/src/models/RecipePreview.js +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | // @flow | ||
2 | |||
3 | export default class RecipePreview { | ||
4 | id = ''; | ||
5 | |||
6 | name = ''; | ||
7 | |||
8 | icon = ''; | ||
9 | |||
10 | featured = false; | ||
11 | |||
12 | aliases = []; | ||
13 | |||
14 | constructor(data) { | ||
15 | if (!data.id) { | ||
16 | throw Error('RecipePreview requires Id'); | ||
17 | } | ||
18 | |||
19 | Object.assign(this, data); | ||
20 | } | ||
21 | } | ||