User class

Annotations
  • @JsonSerializable(checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true)

Constructors

User({bool allowAvatarCopying = true, required String bio, required List<String> bioLinks, required String currentAvatarImageUrl, required String currentAvatarThumbnailImageUrl, required DateTime dateJoined, required DeveloperType developerType, required String displayName, required String friendKey, String? friendRequestStatus, required String id, String? instanceId, required bool isFriend, required String lastActivity, required String lastLogin, required String lastPlatform, String? location, String? note, required String profilePicOverride, required UserState state, required UserStatus status, required String statusDescription, required List<String> tags, String? travelingToInstance, String? travelingToLocation, String? travelingToWorld, required String userIcon, String? username, String? worldId})
Returns a new User instance.
User.fromJson(Map<String, dynamic> json)
factory

Properties

allowAvatarCopying bool
final
bio String
final
final
currentAvatarImageUrl String
When profilePicOverride is not empty, use it instead.
final
currentAvatarThumbnailImageUrl String
When profilePicOverride is not empty, use it instead.
final
dateJoined DateTime
final
developerType DeveloperType
final
displayName String
A users visual display name. This is what shows up in-game, and can different from their username. Changing display name is restricted to a cooldown period.
final
friendKey String
final
friendRequestStatus String?
final
hashCode int
The hash code for this object.
no setteroverride
id String
A users unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. Legacy players can have old IDs in the form of 8JoV9XEdpo. The ID can never be changed.
final
instanceId String?
InstanceID can be "offline" on User profiles if you are not friends with that user and "private" if you are friends and user is in private instance.
final
isFriend bool
Either their friendKey, or empty string if you are not friends. Unknown usage.
final
lastActivity String
Either a date-time or empty string.
final
lastLogin String
Either a date-time or empty string.
final
lastPlatform String
This can be standalonewindows or android, but can also pretty much be any random Unity verison such as 2019.2.4-801-Release or 2019.2.2-772-Release or even unknownplatform.
final
location String?
WorldID be "offline" on User profiles if you are not friends with that user.
final
note String?
final
profilePicOverride String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state UserState
final
status UserStatus
final
statusDescription String
final
tags List<String>
final
travelingToInstance String?
final
travelingToLocation String?
final
travelingToWorld String?
final
userIcon String
final
username String?
-| A users unique name, used during login. This is different from displayName which is what shows up in-game. A users username can never be changed.' DEPRECATED: VRChat API no longer return usernames of other users. See issue by Tupper for more information.
final
worldId String?
WorldID be "offline" on User profiles if you are not friends with that user.
final

Methods

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.
override

Operators

operator ==(Object other) bool
The equality operator.
override