|
|
@@ -15,7 +15,7 @@ class AppConfigModel { |
|
|
|
///新引导页参数 |
|
|
|
GuideData guideData; |
|
|
|
|
|
|
|
static String appStartDelay="0.5"; |
|
|
|
static String appStartDelay = "0.5"; |
|
|
|
|
|
|
|
static AppConfigModel _config; |
|
|
|
|
|
|
@@ -54,7 +54,7 @@ class AppConfigModel { |
|
|
|
keys = json['keys'] != null ? new AppConfigKeyModel.fromJson(json['keys']) : null; |
|
|
|
guideImage = json['guide_image'] != null ? new AppConfigGuideModel.fromJson(json['guide_image']) : null; |
|
|
|
guideData = json['guide_data'] != null ? GuideData.fromJson(json['guide_data']) : null; |
|
|
|
appStartDelay=json['app_start_delay']!=null?json['app_start_delay']:'0.5'; |
|
|
|
appStartDelay = json['app_start_delay'] != null ? json['app_start_delay'] : '0.5'; |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
@@ -75,6 +75,7 @@ class AppConfigKeyModel { |
|
|
|
AppConfigKeyItemModel weixin; |
|
|
|
AppConfigKeyItemModel jdIos; |
|
|
|
AppConfigKeyItemModel jdAndroid; |
|
|
|
GDModel gd; |
|
|
|
|
|
|
|
AppConfigKeyModel({this.weibo, this.qq, this.weixin, this.jdIos, this.jdAndroid}); |
|
|
|
|
|
|
@@ -84,6 +85,7 @@ class AppConfigKeyModel { |
|
|
|
weixin = json['weixin'] != null ? new AppConfigKeyItemModel.fromJson(json['weixin']) : null; |
|
|
|
jdIos = json['jd_ios'] != null ? new AppConfigKeyItemModel.fromJson(json['jd_ios']) : null; |
|
|
|
jdAndroid = json['jd_android'] != null ? new AppConfigKeyItemModel.fromJson(json['jd_android']) : null; |
|
|
|
gd = json['gd'] != null ? GDModel.fromJson(json['gd']) : null; |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
@@ -103,6 +105,10 @@ class AppConfigKeyModel { |
|
|
|
if (this.jdAndroid != null) { |
|
|
|
data['jd_android'] = this.jdAndroid.toJson(); |
|
|
|
} |
|
|
|
if (this.gd != null) { |
|
|
|
data['gd'] = this.gd.toJson(); |
|
|
|
} |
|
|
|
|
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
@@ -216,3 +222,22 @@ class AppConfigGuideModel { |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
class GDModel { |
|
|
|
String androidKey; |
|
|
|
String iosKey; |
|
|
|
|
|
|
|
GDModel({this.androidKey, this.iosKey}); |
|
|
|
|
|
|
|
GDModel.fromJson(Map<String, dynamic> json) { |
|
|
|
androidKey = json['android_key']; |
|
|
|
iosKey = json['ios_key']; |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
data['android_key'] = this.androidKey; |
|
|
|
data['ios_key'] = this.iosKey; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |