This commit is contained in:
Sai Naw Wun
2020-10-07 02:33:06 +06:30
parent 01a2798a74
commit 65dda16fe6
475 changed files with 1543 additions and 90780 deletions

View File

@@ -0,0 +1,36 @@
class Customer {
String id;
String name;
String phoneNumber;
String status;
Customer({
this.id,
this.name,
this.status,
this.phoneNumber,
});
factory Customer.fromMap(Map<String, dynamic> map, String docID) {
return Customer(
id: docID,
name: map['user_name'],
phoneNumber: map['phone_number'],
status: map['status'],
);
}
Map<String, dynamic> toMap() {
return {
'user_name': name,
'phone_number': phoneNumber,
};
}
@override
String toString() {
return 'Customer{name: $name, phoneNumber: $phoneNumber,statis:$status}';
}
}