You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
3.2 KiB

/// id : "1379254113602109440"
/// nickname : "哈哈哈"
/// headimg : "https://pos.upload.gznl.top/admin/2021/08/1f8d55ed-85d2-42a2-b155-6737a66226e8.jpg"
/// userType : true
/// sex : "0"
/// level : 1
/// remark : ""
/// createTime : "2021-04-06 10:06:21"
/// birth : "1998-09-17"
/// organic : 0
/// age : 23
/// signature : ""
/// background : ""
/// follow : 1
/// fans : 0
/// trendTotal : 4
/// gainLikeTotal : 9
class MemberInfor {
MemberInfor({
String id,
String nickname,
String headimg,
bool userType,
String sex,
int level,
String remark,
String createTime,
String birth,
int organic,
int age,
String signature,
String background,
String follow,
String fans,
String trendTotal,
String gainLikeTotal,}){
_id = id;
_nickname = nickname;
_headimg = headimg;
_userType = userType;
_sex = sex;
_level = level;
_remark = remark;
_createTime = createTime;
_birth = birth;
_organic = organic;
_age = age;
_signature = signature;
_background = background;
_follow = follow;
_fans = fans;
_trendTotal = trendTotal;
_gainLikeTotal = gainLikeTotal;
}
MemberInfor.fromJson(dynamic json) {
_id = json['id'];
_nickname = json['nickname'];
_headimg = json['headimg'];
_userType = json['userType'];
_sex = json['sex'];
_level = json['level'];
_remark = json['remark'];
_createTime = json['createTime'];
_birth = json['birth'];
_organic = json['organic'];
_age = json['age'];
_signature = json['signature'];
_background = json['background'];
_follow = json['follow'];
_fans = json['fans'];
_trendTotal = json['trendTotal'];
_gainLikeTotal = json['gainLikeTotal'];
}
String _id;
String _nickname;
String _headimg;
bool _userType;
String _sex;
int _level;
String _remark;
String _createTime;
String _birth;
int _organic;
int _age;
String _signature;
String _background;
String _follow;
String _fans;
String _trendTotal;
String _gainLikeTotal;
String get id => _id;
String get nickname => _nickname;
String get headimg => _headimg;
bool get userType => _userType;
String get sex => _sex;
int get level => _level;
String get remark => _remark;
String get createTime => _createTime;
String get birth => _birth;
int get organic => _organic;
int get age => _age;
String get signature => _signature;
String get background => _background;
String get follow => _follow;
String get fans => _fans;
String get trendTotal => _trendTotal;
String get gainLikeTotal => _gainLikeTotal;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['id'] = _id;
map['nickname'] = _nickname;
map['headimg'] = _headimg;
map['userType'] = _userType;
map['sex'] = _sex;
map['level'] = _level;
map['remark'] = _remark;
map['createTime'] = _createTime;
map['birth'] = _birth;
map['organic'] = _organic;
map['age'] = _age;
map['signature'] = _signature;
map['background'] = _background;
map['follow'] = _follow;
map['fans'] = _fans;
map['trendTotal'] = _trendTotal;
map['gainLikeTotal'] = _gainLikeTotal;
return map;
}
}