updated for tag text
This commit is contained in:
@ -25,6 +25,7 @@ class Destination {
|
||||
String? buypoint_image;
|
||||
bool forced_checkin = false;
|
||||
int recipt_times = 0;
|
||||
String? tags;
|
||||
|
||||
Destination(
|
||||
{this.name,
|
||||
@ -52,13 +53,16 @@ class Destination {
|
||||
this.checkin_image,
|
||||
this.buypoint_image,
|
||||
this.forced_checkin = false,
|
||||
this.recipt_times = 0});
|
||||
this.recipt_times = 0,
|
||||
this.tags});
|
||||
|
||||
factory Destination.fromMap(Map<String, dynamic> json) {
|
||||
bool selec = json['selected'] == 0 ? false : true;
|
||||
bool checkin = json['checkedin'] == 0 ? false : true;
|
||||
bool forcedCheckin = json['forced_checkin'] == 0 ? false : true;
|
||||
|
||||
print("-----tags model----- ${json}");
|
||||
|
||||
return Destination(
|
||||
name: json['name'],
|
||||
address: json['address'],
|
||||
@ -85,7 +89,8 @@ class Destination {
|
||||
checkin_image: json['checkin_image'],
|
||||
buypoint_image: json["buypoint_image"],
|
||||
forced_checkin: forcedCheckin,
|
||||
recipt_times: json["recipt_times"]);
|
||||
recipt_times: json["recipt_times"],
|
||||
tags: json["tags"]);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
@ -118,7 +123,8 @@ class Destination {
|
||||
'checkin_image': checkin_image,
|
||||
'buypoint_image': buypoint_image,
|
||||
'forced_checkin': forcedCheckin,
|
||||
'recipt_times': recipt_times
|
||||
'recipt_times': recipt_times,
|
||||
'tags': tags
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user