summaryrefslogtreecommitdiff
path: root/iridescence/src/models/product.js
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/models/product.js')
-rw-r--r--iridescence/src/models/product.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/iridescence/src/models/product.js b/iridescence/src/models/product.js
new file mode 100644
index 0000000..c826073
--- /dev/null
+++ b/iridescence/src/models/product.js
@@ -0,0 +1,16 @@
+export default class Product {
+ id = 0;
+ name = "";
+ description = "";
+ cents = 0;
+ quantity = 0;
+ featured = false;
+ photo_base = "";
+ photo_fullsize = "";
+ photo_thumbnail = "";
+ category = "";
+
+ constructor(json) {
+ Object.assign(this, json);
+ }
+}