|
|
@@ -1,15 +1,13 @@ |
|
|
|
import 'package:zhiying_base_widget/widgets/mine/mine_header/model/mine_profile_model.dart'; |
|
|
|
import 'package:zhiying_comm/models/base/skip_model.dart'; |
|
|
|
|
|
|
|
class MineDataModel { |
|
|
|
class MineDataModel extends SkipModel { |
|
|
|
String accumulatedEarningsNameColor; |
|
|
|
String accumulatedEarningsColor; |
|
|
|
String accumulatedEarningsBgImg; |
|
|
|
String btnText; |
|
|
|
String btnTextColor; |
|
|
|
String btnImg; |
|
|
|
String requiredLogin; |
|
|
|
String requiredTaobaoAuth; |
|
|
|
String skipIdentifier; |
|
|
|
String gridViewBgColor; |
|
|
|
String gridViewNameColor; |
|
|
|
String gridViewValueColor; |
|
|
@@ -17,20 +15,18 @@ class MineDataModel { |
|
|
|
|
|
|
|
MineDataModel( |
|
|
|
{this.accumulatedEarningsNameColor, |
|
|
|
this.accumulatedEarningsColor, |
|
|
|
this.accumulatedEarningsBgImg, |
|
|
|
this.btnText, |
|
|
|
this.btnTextColor, |
|
|
|
this.btnImg, |
|
|
|
this.requiredLogin, |
|
|
|
this.requiredTaobaoAuth, |
|
|
|
this.skipIdentifier, |
|
|
|
this.gridViewBgColor, |
|
|
|
this.gridViewNameColor, |
|
|
|
this.gridViewValueColor, |
|
|
|
this.gridView}); |
|
|
|
this.accumulatedEarningsColor, |
|
|
|
this.accumulatedEarningsBgImg, |
|
|
|
this.btnText, |
|
|
|
this.btnTextColor, |
|
|
|
this.btnImg, |
|
|
|
this.gridViewBgColor, |
|
|
|
this.gridViewNameColor, |
|
|
|
this.gridViewValueColor, |
|
|
|
this.gridView}); |
|
|
|
|
|
|
|
MineDataModel.fromJson(Map<String, dynamic> json) { |
|
|
|
super.fromJson(json); |
|
|
|
accumulatedEarningsNameColor = json['accumulated_earnings_name_color']; |
|
|
|
accumulatedEarningsColor = json['accumulated_earnings_color']; |
|
|
|
accumulatedEarningsBgImg = json['accumulated_earnings_bg_img']; |
|
|
@@ -52,7 +48,7 @@ class MineDataModel { |
|
|
|
} |
|
|
|
|
|
|
|
Map<String, dynamic> toJson() { |
|
|
|
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|
|
|
final Map<String, dynamic> data = super.toJson(); |
|
|
|
data['accumulated_earnings_name_color'] = this.accumulatedEarningsNameColor; |
|
|
|
data['accumulated_earnings_color'] = this.accumulatedEarningsColor; |
|
|
|
data['accumulated_earnings_bg_img'] = this.accumulatedEarningsBgImg; |
|
|
|