VSocketOnRoomSeenModel class

Model class for Socket event when a user has seen a room

Constructors

VSocketOnRoomSeenModel({required String roomId, required String userId, required String date})
Constructor for creating a new instance of VSocketOnRoomSeenModel
const
VSocketOnRoomSeenModel.fromMap(Map<String, dynamic> map)
Factory constructor for creating an instance of VSocketOnRoomSeenModel from a map
factory

Properties

date String
The date and time when the user has seen the room in ISO 8601 format
final
hashCode int
The hash code for this object.
no setterinherited
isMe bool
Returns true if the VSocketOnRoomSeenModel instance belongs to the current user, or false otherwise
no setter
localDate DateTime
Returns the local date and time when the user has seen the room
no setter
roomId String
The id of the room that the user has seen
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
The id of the user who has seen the room
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Returns a map representation of the VSocketOnRoomSeenModel instance
toString() String
Returns a string representation of the VSocketOnRoomSeenModel instance
override

Operators

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