-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Categories working, all products working, apis according to cities
- Loading branch information
1 parent
f8af2d4
commit 4b5aa00
Showing
30 changed files
with
1,216 additions
and
387 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
class ProductsByCity { | ||
bool empty; | ||
List<Result> result; | ||
|
||
ProductsByCity({this.empty, this.result}); | ||
|
||
ProductsByCity.fromJson(Map<String, dynamic> json) { | ||
empty = json['empty']; | ||
if (json['result'] != null) { | ||
result = new List<Result>(); | ||
json['result'].forEach((v) { | ||
result.add(new Result.fromJson(v)); | ||
}); | ||
} | ||
} | ||
|
||
Map<String, dynamic> toJson() { | ||
final Map<String, dynamic> data = new Map<String, dynamic>(); | ||
data['empty'] = this.empty; | ||
if (this.result != null) { | ||
data['result'] = this.result.map((v) => v.toJson()).toList(); | ||
} | ||
return data; | ||
} | ||
} | ||
|
||
class Result { | ||
String id; | ||
String name; | ||
String price; | ||
String quantity; | ||
String unit; | ||
String description; | ||
String image; | ||
String category; | ||
|
||
Result( | ||
{this.id, | ||
this.name, | ||
this.price, | ||
this.quantity, | ||
this.unit, | ||
this.description, | ||
this.image, | ||
this.category}); | ||
|
||
Result.fromJson(Map<String, dynamic> json) { | ||
id = json['id']; | ||
name = json['name']; | ||
price = json['price']; | ||
quantity = json['quantity']; | ||
unit = json['unit']; | ||
description = json['description']; | ||
image = json['image']; | ||
category = json['category']; | ||
} | ||
|
||
Map<String, dynamic> toJson() { | ||
final Map<String, dynamic> data = new Map<String, dynamic>(); | ||
data['id'] = this.id; | ||
data['name'] = this.name; | ||
data['price'] = this.price; | ||
data['quantity'] = this.quantity; | ||
data['unit'] = this.unit; | ||
data['description'] = this.description; | ||
data['image'] = this.image; | ||
data['category'] = this.category; | ||
return data; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import 'package:gogrocy/core/models/ProductsByCity.dart'; | ||
|
||
class CategoryProductListArgument{ | ||
String categoryTitle; | ||
String categoryId; | ||
|
||
CategoryProductListArgument(this.categoryTitle,this.categoryId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:gogrocy/core/models/Orders.dart'; | ||
|
||
class OrderDetailsArguments{ | ||
Orders orders; | ||
int index; | ||
|
||
OrderDetailsArguments({this.orders,this.index}); | ||
|
||
|
||
} |
Oops, something went wrong.