#2832 まで解決
This commit is contained in:
@ -30,6 +30,8 @@ class Destination {
|
||||
int recipt_times = 0;
|
||||
String? tags;
|
||||
|
||||
bool use_qr_code = false; // QR code を使用するかどうか。default=false
|
||||
|
||||
Destination(
|
||||
{this.name,
|
||||
this.address,
|
||||
@ -57,13 +59,14 @@ class Destination {
|
||||
this.buypoint_image,
|
||||
this.forced_checkin = false,
|
||||
this.recipt_times = 0,
|
||||
this.tags});
|
||||
this.tags,
|
||||
this.use_qr_code = false});
|
||||
|
||||
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;
|
||||
|
||||
bool useQrCode = json['use_qr_code'] == 1 ? true : false;
|
||||
//print("-----tags model----- ${json}");
|
||||
|
||||
return Destination(
|
||||
@ -93,7 +96,8 @@ class Destination {
|
||||
buypoint_image: json["buypoint_image"],
|
||||
forced_checkin: forcedCheckin,
|
||||
recipt_times: json["recipt_times"],
|
||||
tags: json["tags"]);
|
||||
tags: json["tags"],
|
||||
use_qr_code: useQrCode);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
@ -127,7 +131,8 @@ class Destination {
|
||||
'buypoint_image': buypoint_image,
|
||||
'forced_checkin': forcedCheckin,
|
||||
'recipt_times': recipt_times,
|
||||
'tags': tags
|
||||
'tags': tags,
|
||||
'use_qr_code': use_qr_code
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user