UnreadCountsChannel class
A model class representing information for a specific channel.
- Annotations
-
- @JsonSerializable()
Constructors
- UnreadCountsChannel.new({required String channelId, required int unreadCount, required DateTime lastRead})
-
A model class representing information for a specific channel.
const
-
UnreadCountsChannel.fromJson(Map<
String, dynamic> json) -
Create a new instance from a json.
factory
Properties
- channelId → String
-
The unique identifier of the channel (format: "type:id").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastRead → DateTime
-
Timestamp when the channel was last read by the user.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unreadCount → int
-
Number of unread messages in this channel.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited