UserHomeModel.fromJson constructor
UserHomeModel.fromJson(
- Map<String, dynamic> json
)
Implementation
UserHomeModel.fromJson(Map<String, dynamic> json) {
age = json['age'];
attenCnt = json['attenCnt'];
bgImg = json['bgImg'];
birthday = json['birthday'];
emotion = json['emotion'];
emotionStr = json['emotionStr'];
fansCnt = json['fansCnt'];
gender = json['gender'];
homeCity = json['homeCity'];
homeCityStr = json['homeCityStr'];
homeProvince = json['homeProvince'];
myInviteCode = json['myInviteCode'];
homeProvinceStr = json['homeProvinceStr'];
job = json['job'];
jobStr = json['jobStr'];
levelIcon = json['levelIcon'];
accountType = json['accountType'];
anchorLevel = json['anchorLevel'];
hasAtten = json['hasAtten'];
nobilityType = json['nobilityType'] ?? 0;
if (json['list'] != null) {
list = List<ContributionList>.empty(growable: true);
json['list'].forEach((v) {
list?.add(ContributionList.fromJson(v));
});
}
personalSign = json['personalSign'];
userIcon = json['userIcon'];
userId = json['userId'];
userLevel = json['userLevel'];
userName = json['userName'];
}