Read class

The class that defines a read event

Annotations

Constructors

Read({DateTime lastRead, User user, int unreadMessages})
Constructor used for json serialization
Read.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
lastRead DateTime
Date of the read event
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
unreadMessages int
Number of unread messages
final
user User
User who sent the event
final

Methods

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

Operators

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