OwnUser class

The class that defines the own user model This object can be found in Event

Inheritance
Annotations

Constructors

OwnUser({List<Device> devices, List<Mute> mutes, int totalUnreadCount, int unreadChannels, List<Mute> channelMutes, String id, String role, DateTime createdAt, DateTime updatedAt, DateTime lastActive, bool online, Map<String, dynamic> extraData, bool banned})
Constructor used for json serialization
OwnUser.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

banned bool
True if user is banned from the chat
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
channelMutes List<Mute>
List of users muted by the user
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final
createdAt DateTime
Date of user creation
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
devices List<Device>
List of user devices
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final
extraData Map<String, dynamic>
Map of custom user extraData
@JsonKey(includeIfNull: false), final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
User id
final, inherited
lastActive DateTime
Date of last user connection
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
mutes List<Mute>
List of users muted by the user
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final
name String
Shortcut for user name
read-only, inherited
online bool
True if user is online
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
role String
User role
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
totalUnreadCount int
Total unread messages by the user
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final
unreadChannels int
Total unread channels by the user
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final
updatedAt DateTime
Date of last user update
@JsonKey(includeIfNull: false, toJson: Serialization.readOnly), final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Serialize to json
override
toString() String
Returns a string representation of this object.
inherited

Operators

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

Static Properties

topLevelFields List<String>
Known top level fields. Useful for Serialization methods.
final