User class Null safety

An object represents user



User({required String userId, required String nickname, String? profileUrl, UserConnectionStatus? connectionStatus = UserConnectionStatus.notAvailable, int? lastSeenAt, bool? isActive = true, List<String>? preferredLanguages, String? friendDiscoveryKey, String? friendName, List<String>? discoveryKeys, Map<String, String> metaData = const {}, bool requireAuth = false, String? sessionToken})
User.fromJson(Map<String, dynamic> json)


connectionStatus UserConnectionStatus?
This user's connection status
@JsonKey(defaultValue: UserConnectionStatus.notAvailable, unknownEnumValue: UserConnectionStatus.notAvailable), @JsonKey(defaultValue: UserConnectionStatus.notAvailable), read / write
discoveryKeys List<String>?
read / write
friendDiscoveryKey String?
read / write
friendName String?
read / write
hashCode int
The hash code for this object. [...]
read-only, override
isActive bool?
True if this user is activated. This property is changed by the Platform API
read / write
isCurrentUser bool
lastSeenAt int?
The lastest time when the user became offline
read / write
metaData Map<String, String>
@JsonKey(defaultValue: const {}, name: 'metadata'), read / write
nickname String
User nickname
@JsonKey(defaultValue: ''), read / write
preferredLanguages List<String>?
User's preferred language. Used for translating messages.
read / write
profileUrl String?
Profile image url
read / write
requireAuth bool
@JsonKey(defaultValue: false, name: 'require_auth_for_profile_image'), read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secureProfileUrl String?
Profile image url with auth
sessionToken String?
read / write
userId String
User ID. This has to be unique
read / write


copyWith(User other) → void
createMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>
deleteAllMetaData() Future<void>
deleteMetaData(String key) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]
updateMetaData(Map<String, String> metaDataMap) Future<Map<String, String>>


operator ==(Object other) bool
The equality operator. [...]