backup. before shop update

This commit is contained in:
2021-08-31 13:28:33 -04:00
parent c378a6203c
commit 808ffa3211
292 changed files with 51551 additions and 695 deletions

View File

@@ -0,0 +1,32 @@
import 'dart:convert';
class SimpleProduct {
int id;
String name;
double price;
double regularPrice;
String description;
String imagePath;
SimpleProduct.fromJson(Map<String, dynamic> json)
: id = json['id'],
name = json['name'],
price = double.parse(json['price'].toString()),
regularPrice = double.parse(json['regular_price'].toString()),
description = json['description'],
imagePath = json['image_path'];
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'price': price,
'regular_price': regularPrice,
'description': description,
'image_path': imagePath
};
@override
String toString() {
return json.encode(this);
}
}