add page of fcs
This commit is contained in:
19
lib/vo/fcs_profile.dart
Normal file
19
lib/vo/fcs_profile.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class FCSProfile {
|
||||
String id;
|
||||
String usaAddress;
|
||||
String mmAddress;
|
||||
String usaContactNumber;
|
||||
String mmContactNumber;
|
||||
String mail;
|
||||
String facebook;
|
||||
|
||||
FCSProfile({
|
||||
this.id,
|
||||
this.usaAddress,
|
||||
this.mmAddress,
|
||||
this.usaContactNumber,
|
||||
this.mmContactNumber,
|
||||
this.mail,
|
||||
this.facebook,
|
||||
});
|
||||
}
|
||||
40
lib/vo/pickup.dart
Normal file
40
lib/vo/pickup.dart
Normal file
@@ -0,0 +1,40 @@
|
||||
class PickUp {
|
||||
String id;
|
||||
String userName;
|
||||
String phoneNumber;
|
||||
String fromTime;
|
||||
String toTime;
|
||||
int numberOfPackage;
|
||||
int weight;
|
||||
String address;
|
||||
String status;
|
||||
|
||||
PickUp(
|
||||
{this.id,
|
||||
this.userName,
|
||||
this.phoneNumber,
|
||||
this.fromTime,
|
||||
this.toTime,
|
||||
this.numberOfPackage,
|
||||
this.weight,
|
||||
this.address,
|
||||
this.status});
|
||||
|
||||
factory PickUp.fromMap(Map<String, dynamic> map, String id) {
|
||||
return PickUp(
|
||||
id: id,
|
||||
userName: map['user_name'],
|
||||
phoneNumber: map['phone_number'],
|
||||
fromTime: map['from_time'],
|
||||
toTime: map['to_time'],
|
||||
numberOfPackage: map['number_of_package'],
|
||||
weight: map['weight'],
|
||||
address: map['address'],
|
||||
status: map['status']);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'PickUp{id:$id, userName:$userName,phoneNumber:$phoneNumber,fromTime:$fromTime,toTime:$toTime,numberOfPackage:$numberOfPackage,weight:$weight,status:$status}';
|
||||
}
|
||||
}
|
||||
31
lib/vo/rate.dart
Normal file
31
lib/vo/rate.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
class Rate {
|
||||
String id;
|
||||
String name;
|
||||
String description;
|
||||
String fromTime;
|
||||
String toTime;
|
||||
int price;
|
||||
|
||||
Rate(
|
||||
{this.id,
|
||||
this.name,
|
||||
this.description,
|
||||
this.fromTime,
|
||||
this.toTime,
|
||||
this.price,});
|
||||
|
||||
factory Rate.fromMap(Map<String, dynamic> map, String id) {
|
||||
return Rate(
|
||||
id: id,
|
||||
name: map['name'],
|
||||
description: map['description'],
|
||||
fromTime: map['from_time'],
|
||||
toTime: map['to_time'],
|
||||
price: map['price'],);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Rate{id:$id, name:$name,description:$description,fromTime:$fromTime,toTime:$toTime}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user