add update shipments

This commit is contained in:
Sai Naw Wun
2020-10-18 02:38:46 +06:30
parent fa9738f307
commit 4f8bde40b0
37 changed files with 596 additions and 455 deletions

View File

@@ -23,24 +23,25 @@ class Setting {
final String termsEng;
final String termsMm;
String about;
String courierWebsite;
List<String> shipmentTypes;
Setting({
this.supportBuildNum,
this.usaAddress,
this.mmAddress,
this.usaContactNumber,
this.mmContactNumber,
this.emailAddress,
this.facebookLink,
this.inviteRequired,
this.appUrl,
this.termsEng,
this.termsMm,
this.about,
this.shipmentTypes,
});
Setting(
{this.supportBuildNum,
this.usaAddress,
this.mmAddress,
this.usaContactNumber,
this.mmContactNumber,
this.emailAddress,
this.facebookLink,
this.inviteRequired,
this.appUrl,
this.termsEng,
this.termsMm,
this.about,
this.shipmentTypes,
this.courierWebsite});
factory Setting.fromMap(Map<String, dynamic> map) {
return Setting(
@@ -57,6 +58,7 @@ class Setting {
termsEng: map['terms_eng'],
termsMm: map['terms_mm'],
shipmentTypes: List.from(map['shipment_types']),
courierWebsite: map['courier_website'],
);
}