|
|
@@ -76,9 +76,10 @@ class AppConfigKeyModel { |
|
|
|
AppConfigKeyItemModel jdIos; |
|
|
|
AppConfigKeyItemModel jdAndroid; |
|
|
|
AppConfigKeyItemModel taobao; |
|
|
|
AppConfigKeyItemModel bugly; |
|
|
|
GDModel gd; |
|
|
|
|
|
|
|
AppConfigKeyModel({this.weibo, this.qq, this.weixin, this.jdIos, this.jdAndroid,this.taobao}); |
|
|
|
AppConfigKeyModel({this.weibo, this.qq, this.weixin, this.jdIos, this.jdAndroid, this.taobao, this.bugly}); |
|
|
|
|
|
|
|
AppConfigKeyModel.fromJson(Map<String, dynamic> json) { |
|
|
|
weibo = json['weibo'] != null ? new AppConfigKeyItemModel.fromJson(json['weibo']) : null; |
|
|
@@ -88,6 +89,7 @@ class AppConfigKeyModel { |
|
|
|
jdAndroid = json['jd_android'] != null ? new AppConfigKeyItemModel.fromJson(json['jd_android']) : null; |
|
|
|
taobao = json['taobao'] != null ? new AppConfigKeyItemModel.fromJson(json['taobao']) : null; |
|
|
|
gd = json['gd'] != null ? GDModel.fromJson(json['gd']) : null; |
|
|
|
bugly = json['bugly_list'] != null ? new AppConfigKeyItemModel.fromJson(json['bugly_list']) : null; |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
@@ -113,6 +115,9 @@ class AppConfigKeyModel { |
|
|
|
if (this.gd != null) { |
|
|
|
data['gd'] = this.gd.toJson(); |
|
|
|
} |
|
|
|
if (this.bugly != null) { |
|
|
|
data['bugly_list'] = this.bugly.toJson(); |
|
|
|
} |
|
|
|
|
|
|
|
return data; |
|
|
|
} |
|
|
@@ -189,8 +194,22 @@ class AppConfigKeyItemModel { |
|
|
|
String universalLink; |
|
|
|
String androidKey; |
|
|
|
String iosKey; |
|
|
|
|
|
|
|
AppConfigKeyItemModel({this.appkey, this.secret, this.redirectUrl,this.androidKey,this.iosKey}); |
|
|
|
String androidAppId; |
|
|
|
String androidAppKey; |
|
|
|
String iosAppId; |
|
|
|
String iosAppKey; |
|
|
|
|
|
|
|
AppConfigKeyItemModel({ |
|
|
|
this.appkey, |
|
|
|
this.secret, |
|
|
|
this.redirectUrl, |
|
|
|
this.androidKey, |
|
|
|
this.iosKey, |
|
|
|
this.androidAppId, |
|
|
|
this.androidAppKey, |
|
|
|
this.iosAppId, |
|
|
|
this.iosAppKey |
|
|
|
}); |
|
|
|
|
|
|
|
AppConfigKeyItemModel.fromJson(Map<String, dynamic> json) { |
|
|
|
appId = json['app_id']; |
|
|
@@ -200,6 +219,10 @@ class AppConfigKeyItemModel { |
|
|
|
iosKey = json['ios_key']; |
|
|
|
redirectUrl = json['redirect_url']; |
|
|
|
universalLink = json['universal_link']; |
|
|
|
androidAppId = json['android_appid']; |
|
|
|
androidAppKey = json['android_appkey']; |
|
|
|
iosAppId = json['ios_appid']; |
|
|
|
iosAppKey = json['ios_appkey']; |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
@@ -211,6 +234,10 @@ class AppConfigKeyItemModel { |
|
|
|
data['android_key'] = this.androidKey; |
|
|
|
data['ios_key'] = this.iosKey; |
|
|
|
data['universal_link'] = this.universalLink; |
|
|
|
data['android_appid'] = this.androidAppId; |
|
|
|
data['android_appkey'] = this.androidAppKey; |
|
|
|
data['ios_appid'] = this.iosAppId; |
|
|
|
data['ios_appkey'] = this.iosAppKey; |
|
|
|
return data; |
|
|
|
} |
|
|
|
} |
|
|
|