|
@@ -1,3 +1,6 @@ |
|
|
|
|
|
import 'package:zhiying_base_widget/dialog/global_dialog/intellect_search_goods_dialog/model/no_goods_dialog_style_model.dart'; |
|
|
|
|
|
import 'package:zhiying_comm/models/base/skip_model.dart'; |
|
|
|
|
|
|
|
|
class MessageNoticeStyleModel { |
|
|
class MessageNoticeStyleModel { |
|
|
bool isFist; |
|
|
bool isFist; |
|
|
String styleType; |
|
|
String styleType; |
|
@@ -78,7 +81,7 @@ class MessageNoticeStyleModel { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class FeedbackNotificationStyle { |
|
|
|
|
|
|
|
|
class FeedbackNotificationStyle extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String icon; |
|
|
String icon; |
|
|
String message_value_color; |
|
|
String message_value_color; |
|
@@ -95,19 +98,29 @@ class FeedbackNotificationStyle { |
|
|
this.title_value_color, |
|
|
this.title_value_color, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
factory FeedbackNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
return FeedbackNotificationStyle( |
|
|
|
|
|
bg_color: json['bg_color'], |
|
|
|
|
|
icon: json['icon'], |
|
|
|
|
|
message_value_color: json['message_value_color'], |
|
|
|
|
|
skip_identifier: json['skip_identifier'], |
|
|
|
|
|
time_color: json['time_color'], |
|
|
|
|
|
title_value_color: json['title_value_color'], |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
// factory FeedbackNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
// return FeedbackNotificationStyle( |
|
|
|
|
|
// bg_color: json['bg_color'], |
|
|
|
|
|
// icon: json['icon'], |
|
|
|
|
|
// message_value_color: json['message_value_color'], |
|
|
|
|
|
// skip_identifier: json['skip_identifier'], |
|
|
|
|
|
// time_color: json['time_color'], |
|
|
|
|
|
// title_value_color: json['title_value_color'], |
|
|
|
|
|
// ); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
FeedbackNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
super.fromJson(json); |
|
|
|
|
|
bg_color = json['bg_color']; |
|
|
|
|
|
icon = json['icon']; |
|
|
|
|
|
message_value_color = json['message_value_color']; |
|
|
|
|
|
skip_identifier = json['skip_identifier']; |
|
|
|
|
|
time_color = json['time_color']; |
|
|
|
|
|
title_value_color = json['title_value_color']; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['icon'] = this.icon; |
|
|
data['icon'] = this.icon; |
|
|
data['message_value_color'] = this.message_value_color; |
|
|
data['message_value_color'] = this.message_value_color; |
|
@@ -144,7 +157,7 @@ class MainNotificationStyle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class MainNotificationStyleItem { |
|
|
|
|
|
|
|
|
class MainNotificationStyleItem extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String icon; |
|
|
String icon; |
|
|
String name; |
|
|
String name; |
|
@@ -188,7 +201,7 @@ class MainNotificationStyleItem { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class OfficialActivityStyle { |
|
|
|
|
|
|
|
|
class OfficialActivityStyle extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String message_value_color; |
|
|
String message_value_color; |
|
|
String skip_identifier; |
|
|
String skip_identifier; |
|
@@ -203,18 +216,17 @@ class OfficialActivityStyle { |
|
|
this.title_value_color, |
|
|
this.title_value_color, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
factory OfficialActivityStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
return OfficialActivityStyle( |
|
|
|
|
|
bg_color: json['bg_color'], |
|
|
|
|
|
message_value_color: json['message_value_color'], |
|
|
|
|
|
skip_identifier: json['skip_identifier'], |
|
|
|
|
|
time_color: json['time_color'], |
|
|
|
|
|
title_value_color: json['title_value_color'], |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
OfficialActivityStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
super.fromJson(json); |
|
|
|
|
|
bg_color = json['bg_color']; |
|
|
|
|
|
message_value_color = json['message_value_color']; |
|
|
|
|
|
skip_identifier = json['skip_identifier']; |
|
|
|
|
|
time_color = json['time_color']; |
|
|
|
|
|
title_value_color = json['title_value_color']; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['message_value_color'] = this.message_value_color; |
|
|
data['message_value_color'] = this.message_value_color; |
|
|
data['skip_identifier'] = this.skip_identifier; |
|
|
data['skip_identifier'] = this.skip_identifier; |
|
@@ -224,7 +236,7 @@ class OfficialActivityStyle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class OfficialNotificationStyle { |
|
|
|
|
|
|
|
|
class OfficialNotificationStyle extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String icon; |
|
|
String icon; |
|
|
String message_value_color; |
|
|
String message_value_color; |
|
@@ -241,19 +253,18 @@ class OfficialNotificationStyle { |
|
|
this.title_value_color, |
|
|
this.title_value_color, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
factory OfficialNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
return OfficialNotificationStyle( |
|
|
|
|
|
bg_color: json['bg_color'], |
|
|
|
|
|
icon: json['icon'], |
|
|
|
|
|
message_value_color: json['message_value_color'], |
|
|
|
|
|
skip_identifier: json['skip_identifier'], |
|
|
|
|
|
time_color: json['time_color'], |
|
|
|
|
|
title_value_color: json['title_value_color'], |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
OfficialNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
super.fromJson(json); |
|
|
|
|
|
bg_color = json['bg_color']; |
|
|
|
|
|
icon = json['icon']; |
|
|
|
|
|
message_value_color = json['message_value_color']; |
|
|
|
|
|
skip_identifier = json['skip_identifier']; |
|
|
|
|
|
time_color = json['time_color']; |
|
|
|
|
|
title_value_color = json['title_value_color']; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['icon'] = this.icon; |
|
|
data['icon'] = this.icon; |
|
|
data['message_value_color'] = this.message_value_color; |
|
|
data['message_value_color'] = this.message_value_color; |
|
@@ -264,7 +275,7 @@ class OfficialNotificationStyle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class PromotionNotificationStyle { |
|
|
|
|
|
|
|
|
class PromotionNotificationStyle extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String icon; |
|
|
String icon; |
|
|
String message_value_color; |
|
|
String message_value_color; |
|
@@ -281,19 +292,28 @@ class PromotionNotificationStyle { |
|
|
this.title_value_color, |
|
|
this.title_value_color, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
factory PromotionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
return PromotionNotificationStyle( |
|
|
|
|
|
bg_color: json['bg_color'], |
|
|
|
|
|
icon: json['icon'], |
|
|
|
|
|
message_value_color: json['message_value_color'], |
|
|
|
|
|
skip_identifier: json['skip_identifier'], |
|
|
|
|
|
time_color: json['time_color'], |
|
|
|
|
|
title_value_color: json['title_value_color'], |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
// factory PromotionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
// return PromotionNotificationStyle( |
|
|
|
|
|
// bg_color: json['bg_color'], |
|
|
|
|
|
// icon: json['icon'], |
|
|
|
|
|
// message_value_color: json['message_value_color'], |
|
|
|
|
|
// skip_identifier: json['skip_identifier'], |
|
|
|
|
|
// time_color: json['time_color'], |
|
|
|
|
|
// title_value_color: json['title_value_color'], |
|
|
|
|
|
// ); |
|
|
|
|
|
// } |
|
|
|
|
|
PromotionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
super.fromJson(json); |
|
|
|
|
|
bg_color = json['bg_color']; |
|
|
|
|
|
icon = json['icon']; |
|
|
|
|
|
message_value_color = json['message_value_color']; |
|
|
|
|
|
skip_identifier = json['skip_identifier']; |
|
|
|
|
|
time_color = json['time_color']; |
|
|
|
|
|
title_value_color = json['title_value_color']; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['icon'] = this.icon; |
|
|
data['icon'] = this.icon; |
|
|
data['message_value_color'] = this.message_value_color; |
|
|
data['message_value_color'] = this.message_value_color; |
|
@@ -304,7 +324,7 @@ class PromotionNotificationStyle { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
class TransactionNotificationStyle { |
|
|
|
|
|
|
|
|
class TransactionNotificationStyle extends SkipModel { |
|
|
String bg_color; |
|
|
String bg_color; |
|
|
String earnings; |
|
|
String earnings; |
|
|
String icon; |
|
|
String icon; |
|
@@ -323,20 +343,31 @@ class TransactionNotificationStyle { |
|
|
this.title_value_color, |
|
|
this.title_value_color, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
factory TransactionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
return TransactionNotificationStyle( |
|
|
|
|
|
bg_color: json['bg_color'], |
|
|
|
|
|
earnings: json['earnings'], |
|
|
|
|
|
icon: json['icon'], |
|
|
|
|
|
message_value_color: json['message_value_color'], |
|
|
|
|
|
skip_identifier: json['skip_identifier'], |
|
|
|
|
|
time_color: json['time_color'], |
|
|
|
|
|
title_value_color: json['title_value_color'], |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
// factory TransactionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
// return TransactionNotificationStyle( |
|
|
|
|
|
// bg_color: json['bg_color'], |
|
|
|
|
|
// earnings: json['earnings'], |
|
|
|
|
|
// icon: json['icon'], |
|
|
|
|
|
// message_value_color: json['message_value_color'], |
|
|
|
|
|
// skip_identifier: json['skip_identifier'], |
|
|
|
|
|
// time_color: json['time_color'], |
|
|
|
|
|
// title_value_color: json['title_value_color'], |
|
|
|
|
|
// ); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
TransactionNotificationStyle.fromJson(Map<String, dynamic> json) { |
|
|
|
|
|
super.fromJson(json); |
|
|
|
|
|
bg_color = json['bg_color']; |
|
|
|
|
|
earnings = json['earnings']; |
|
|
|
|
|
icon = json['icon']; |
|
|
|
|
|
message_value_color = json['message_value_color']; |
|
|
|
|
|
skip_identifier = json['skip_identifier']; |
|
|
|
|
|
time_color = json['time_color']; |
|
|
|
|
|
title_value_color = json['title_value_color']; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
Map<String, dynamic> toJson() { |
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
|
|
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['bg_color'] = this.bg_color; |
|
|
data['earnings'] = this.earnings; |
|
|
data['earnings'] = this.earnings; |
|
|
data['icon'] = this.icon; |
|
|
data['icon'] = this.icon; |
|
|