UserInfo class Null safety

标识用户信息的 UserInfo 对象。

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

UserInfo(int uid, String userAccount)
Constructs a UserInfo
UserInfo.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uid int
用户 ID。
read / write
userAccount String
用户 Account。
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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