UserInfo class

用户信息,对应 UserDetailResponse / UserSetting.UserInfo

Constructors

UserInfo({int id = 0, String mobile = '', String nickname = '', String avatar = '', int gender = 0, String motto = '', String email = '', String birthday = '', bool isQiye = false, int isRobot = YesNo.no, int isOfficial = YesNo.no})
UserInfo.fromJson(Map<String, dynamic> json)
factory

Properties

avatar ↔ String
getter/setter pair
birthday ↔ String
getter/setter pair
email ↔ String
getter/setter pair
gender ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ int
getter/setter pair
isOfficial ↔ int
users.is_official:1=是 2=否
getter/setter pair
isOfficialAccount → bool
no setter
isQiye ↔ bool
getter/setter pair
isRobot ↔ int
users.is_robot:1=是 2=否
getter/setter pair
isRobotAccount → bool
no setter
mobile ↔ String
getter/setter pair
motto ↔ String
getter/setter pair
nickname ↔ String
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? id, String? mobile, String? nickname, String? avatar, int? gender, String? motto, String? email, String? birthday, bool? isQiye, int? isRobot, int? isOfficial}) → UserInfo
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited