| | |
| | | ///用户信息 |
| | | class UserInfo { |
| | | UserInfo({int? id, String? nickName, String? portrait, int? vipExpireTime}) { |
| | | UserInfo( |
| | | {int? id, |
| | | String? nickName, |
| | | String? portrait, |
| | | int? vipExpireTime, |
| | | bool? needAlwaysLocation}) { |
| | | _id = id; |
| | | _nickName = nickName; |
| | | _portrait = portrait; |
| | | _vipExpireTime = vipExpireTime; |
| | | _needAlwaysLocation = needAlwaysLocation; |
| | | } |
| | | |
| | | UserInfo.fromJson(dynamic json) { |
| | |
| | | _nickName = json['nickName']; |
| | | _portrait = json['portrait']; |
| | | _vipExpireTime = json['vipExpireTime']; |
| | | _needAlwaysLocation = json['needAlwaysLocation']; |
| | | } |
| | | |
| | | int? _id; |
| | | String? _nickName; |
| | | String? _portrait; |
| | | int? _vipExpireTime; |
| | | bool? _needAlwaysLocation; |
| | | |
| | | int? get id => _id; |
| | | |
| | |
| | | |
| | | int? get vipExpireTime => _vipExpireTime; |
| | | |
| | | bool? get needAlwaysLocation => _needAlwaysLocation; |
| | | |
| | | Map<String, dynamic> toJson() { |
| | | final map = <String, dynamic>{}; |
| | | map['id'] = _id; |
| | | map['nickName'] = _nickName; |
| | | map['portrait'] = _portrait; |
| | | map['vipExpireTime'] = _vipExpireTime; |
| | | map['needAlwaysLocation'] = _needAlwaysLocation; |
| | | return map; |
| | | } |
| | | } |
| | | |