update for reorder and location points

This commit is contained in:
Mohamed Nouffer
2022-09-01 19:14:18 +05:30
parent a4adf24e99
commit 09ac737de5
12 changed files with 196 additions and 143 deletions

View File

@ -18,6 +18,9 @@ class Destination {
int? auto_checkin;
bool? selected = false;
bool? checkedin = false;
double? cp;
double? checkin_point;
double? buy_point;
Destination({
this.name,
@ -36,7 +39,10 @@ class Destination {
this.checkin_radious,
this.auto_checkin,
this.selected,
this.checkedin
this.checkedin,
this.cp,
this.checkin_point,
this.buy_point
});
factory Destination.fromMap(Map<String, dynamic> json) {
@ -61,7 +67,10 @@ class Destination {
checkin_radious: json['checkin_radious'],
auto_checkin:json['auto_checkin'],
selected: selec,
checkedin: checkin
checkedin: checkin,
cp: json['cp'],
checkin_point: json['checkin_point'],
buy_point: json['buy_point']
);
}
@ -85,7 +94,10 @@ class Destination {
'checkin_radious': checkin_radious,
'auto_checkin': auto_checkin,
'selected': sel,
'checkedin': check
'checkedin': check,
'cp' : cp,
'checkin_point' : checkin_point,
'buy_point' : buy_point
};
}