2020-09-04 01:42:58 +06:30
|
|
|
List<Day> dayLists = [
|
|
|
|
|
Day(id: 1, name: 'Sun'),
|
|
|
|
|
Day(id: 2, name: 'Mon'),
|
|
|
|
|
Day(id: 3, name: 'Tue'),
|
|
|
|
|
Day(id: 4, name: 'Wed'),
|
|
|
|
|
Day(id: 5, name: 'Thu'),
|
|
|
|
|
Day(id: 6, name: 'Fri'),
|
|
|
|
|
Day(id: 7, name: 'Sat'),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
class Setting {
|
2021-09-10 15:15:20 +06:30
|
|
|
final int supportBuildNum;
|
2020-09-04 15:30:10 +06:30
|
|
|
// contact page
|
2021-09-10 14:27:38 +06:30
|
|
|
String? usaAddress;
|
|
|
|
|
String? mmAddress;
|
|
|
|
|
String? usaContactNumber;
|
|
|
|
|
String? mmContactNumber;
|
|
|
|
|
String? emailAddress;
|
|
|
|
|
String? facebookLink;
|
|
|
|
|
bool? inviteRequired;
|
|
|
|
|
String? appUrl;
|
|
|
|
|
final String? termsEng;
|
|
|
|
|
final String? termsMm;
|
|
|
|
|
String? about;
|
|
|
|
|
String? courierWebsite;
|
2020-10-08 03:32:52 +06:30
|
|
|
|
|
|
|
|
List<String> shipmentTypes;
|
|
|
|
|
|
2020-10-18 02:38:46 +06:30
|
|
|
Setting(
|
2021-09-10 15:15:20 +06:30
|
|
|
{this.supportBuildNum = 1,
|
2020-10-18 02:38:46 +06:30
|
|
|
this.usaAddress,
|
|
|
|
|
this.mmAddress,
|
|
|
|
|
this.usaContactNumber,
|
|
|
|
|
this.mmContactNumber,
|
|
|
|
|
this.emailAddress,
|
|
|
|
|
this.facebookLink,
|
|
|
|
|
this.inviteRequired,
|
|
|
|
|
this.appUrl,
|
|
|
|
|
this.termsEng,
|
|
|
|
|
this.termsMm,
|
|
|
|
|
this.about,
|
2021-09-10 14:27:38 +06:30
|
|
|
this.shipmentTypes = const [],
|
2020-10-18 02:38:46 +06:30
|
|
|
this.courierWebsite});
|
2020-09-04 01:42:58 +06:30
|
|
|
|
|
|
|
|
factory Setting.fromMap(Map<String, dynamic> map) {
|
|
|
|
|
return Setting(
|
2020-10-08 03:32:52 +06:30
|
|
|
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'],
|
|
|
|
|
termsMm: map['terms_mm'],
|
|
|
|
|
shipmentTypes: List.from(map['shipment_types']),
|
2020-10-18 02:38:46 +06:30
|
|
|
courierWebsite: map['courier_website'],
|
2020-10-08 03:32:52 +06:30
|
|
|
);
|
2020-09-04 01:42:58 +06:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toMap() {
|
|
|
|
|
return {
|
2020-09-18 04:04:21 +06:30
|
|
|
'terms_eng': termsEng,
|
|
|
|
|
'terms_mm': termsMm,
|
2020-09-04 01:42:58 +06:30
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
2020-10-08 03:32:52 +06:30
|
|
|
return 'Setting{supportBuildNum:$supportBuildNum,about:$about}';
|
2020-09-04 01:42:58 +06:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Day {
|
2021-09-10 14:27:38 +06:30
|
|
|
int? id;
|
|
|
|
|
String? name;
|
|
|
|
|
bool? isChecked = false;
|
2020-09-04 01:42:58 +06:30
|
|
|
Day({this.id, this.name, this.isChecked});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() {
|
|
|
|
|
return 'Day{id:$id,name:$name,isChecked:$isChecked}';
|
|
|
|
|
}
|
|
|
|
|
}
|