add image caches
This commit is contained in:
@@ -11,6 +11,11 @@ const user_invited_status = "invited";
|
||||
|
||||
const pkg_files_path = "/packages";
|
||||
|
||||
// Link page
|
||||
const page_payment_methods = "payment_methods";
|
||||
const page_buying_instructions = "buying_instructions";
|
||||
//////////////////////////////
|
||||
|
||||
const ok_doc_id = "ok";
|
||||
|
||||
const biz_collection = "bizs";
|
||||
|
||||
@@ -5,18 +5,23 @@ class FAQ {
|
||||
String questionMm;
|
||||
String answerEng;
|
||||
String answerMm;
|
||||
String pageLinkLabelEng;
|
||||
String pageLinkLabelMm;
|
||||
String pageLink;
|
||||
|
||||
String question(bool isEng) => isEng ? questionEng : questionMm;
|
||||
String answer(bool isEng) => isEng ? answerEng : answerMm;
|
||||
|
||||
FAQ({
|
||||
this.id,
|
||||
this.sn,
|
||||
this.questionEng,
|
||||
this.questionMm,
|
||||
this.answerEng,
|
||||
this.answerMm,
|
||||
});
|
||||
FAQ(
|
||||
{this.id,
|
||||
this.sn,
|
||||
this.questionEng,
|
||||
this.questionMm,
|
||||
this.answerEng,
|
||||
this.answerMm,
|
||||
this.pageLinkLabelEng,
|
||||
this.pageLinkLabelMm,
|
||||
this.pageLink});
|
||||
|
||||
Map<String, dynamic> toMap() {
|
||||
return {
|
||||
@@ -26,6 +31,9 @@ class FAQ {
|
||||
'answer_eng': answerEng,
|
||||
'question_mm': questionMm,
|
||||
'answer_mm': answerMm,
|
||||
'page_link_label_eng': pageLinkLabelEng,
|
||||
'page_link_label_mm': pageLinkLabelMm,
|
||||
'page_link': pageLink,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +45,9 @@ class FAQ {
|
||||
answerEng: map['answer_eng'],
|
||||
questionMm: map['question_mm'],
|
||||
answerMm: map['answer_mm'],
|
||||
pageLinkLabelEng: map['page_link_label_eng'],
|
||||
pageLinkLabelMm: map['page_link_label_mm'],
|
||||
pageLink: map['page_link'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -106,4 +106,20 @@ class Package {
|
||||
"remark": remark,
|
||||
"photo_urls": photoUrls
|
||||
};
|
||||
|
||||
factory Package.fromJson(Map<String, dynamic> json) {
|
||||
return Package(
|
||||
id: json['id'],
|
||||
trackingID: json['tracking_id'],
|
||||
market: json['market'],
|
||||
userName: json['user_name'],
|
||||
phoneNumber: json['phone_number'],
|
||||
currentStatus: json['current_status'],
|
||||
currentStatusDate: DateTime.parse(json['current_status_date']));
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Package{id: $id, currentStatus: $currentStatus, market:$market, trackingID: $trackingID,}';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user