-
Notifications
You must be signed in to change notification settings - Fork 0
/
items.dart
45 lines (36 loc) · 872 Bytes
/
items.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import 'package:cloud_firestore/cloud_firestore.dart';
class Items
{
String? itemID;
String? itemName;
String? itemDescription;
String? itemImage;
String? sellerName;
String? sellerPhone;
String? itemPrice;
Timestamp? publishedDate;
String? status;
Items({
this.itemID,
this.itemName,
this.itemDescription,
this.itemImage,
this.sellerName,
this.sellerPhone,
this.itemPrice,
this.publishedDate,
this.status,
});
Items.fromJson(Map<String, dynamic> json)
{
itemID = json["itemID"];
itemName = json["itemName"];
itemDescription = json["itemDescription"];
itemImage = json["itemImage"];
sellerName = json["sellerName"];
sellerPhone = json["sellerPhone"];
itemPrice = json["itemPrice"];
publishedDate = json["publishedDate"];
status = json["status"];
}
}