move reportUrl and reportProjectId from config to setting
This commit is contained in:
@@ -10,6 +10,9 @@ List<Day> dayLists = [
|
||||
|
||||
class Setting {
|
||||
final int supportBuildNum;
|
||||
final String reportURL;
|
||||
final String reportProjectID;
|
||||
final String bucketName;
|
||||
// contact page
|
||||
String? usaAddress;
|
||||
String? mmAddress;
|
||||
@@ -24,7 +27,7 @@ class Setting {
|
||||
String? about;
|
||||
String? courierWebsite;
|
||||
String? deactivateTextEn;
|
||||
String? deactivateTextMm;
|
||||
String? deactivateTextMm;
|
||||
|
||||
List<String> shipmentTypes;
|
||||
|
||||
@@ -44,27 +47,32 @@ class Setting {
|
||||
this.shipmentTypes = const [],
|
||||
this.courierWebsite,
|
||||
this.deactivateTextEn,
|
||||
this.deactivateTextMm});
|
||||
this.deactivateTextMm,
|
||||
this.bucketName = '',
|
||||
this.reportProjectID = '',
|
||||
this.reportURL = ''});
|
||||
|
||||
factory Setting.fromMap(Map<String, dynamic> map) {
|
||||
return Setting(
|
||||
supportBuildNum: map['support_build_number'],
|
||||
inviteRequired: map['invite_required'],
|
||||
appUrl: map['app_url'],
|
||||
usaAddress: map['usa_address'],
|
||||
mmAddress: map['mm_address'],
|
||||
usaContactNumber: map['usa_contact_number'],
|
||||
mmContactNumber: map['mm_contact_number'],
|
||||
emailAddress: map['email_address'],
|
||||
facebookLink: map['facebook_link'],
|
||||
about: map['about'],
|
||||
termsEng: map['terms_eng_markdown'],
|
||||
termsMm: map['terms_mm_markdown'],
|
||||
shipmentTypes: List.from(map['shipment_types']),
|
||||
courierWebsite: map['courier_website'],
|
||||
deactivateTextEn: map['deactivate_text_en']??"",
|
||||
deactivateTextMm: map['deactivate_text_mm']??""
|
||||
);
|
||||
supportBuildNum: map['support_build_number'],
|
||||
inviteRequired: map['invite_required'],
|
||||
appUrl: map['app_url'],
|
||||
usaAddress: map['usa_address'],
|
||||
mmAddress: map['mm_address'],
|
||||
usaContactNumber: map['usa_contact_number'],
|
||||
mmContactNumber: map['mm_contact_number'],
|
||||
emailAddress: map['email_address'],
|
||||
facebookLink: map['facebook_link'],
|
||||
about: map['about'],
|
||||
termsEng: map['terms_eng_markdown'],
|
||||
termsMm: map['terms_mm_markdown'],
|
||||
shipmentTypes: List.from(map['shipment_types']),
|
||||
courierWebsite: map['courier_website'],
|
||||
deactivateTextEn: map['deactivate_text_en'] ?? "",
|
||||
deactivateTextMm: map['deactivate_text_mm'] ?? "",
|
||||
reportProjectID: map['report_project_id'] ?? "",
|
||||
reportURL: map['report_url'] ?? "",
|
||||
bucketName: map['bucket_name'] ?? '');
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user