Unread class

Unread message counters.

Annotations
  • @freezed

Constructors

Unread({@JsonKey(name: 'messages') required int numMessages, @JsonKey(name: 'notice_messages') required int numNoticeMessages, @JsonKey(name: 'chats') required int numChats})
const
factory
Unread.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $UnreadCopyWith<Unread>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
numChats int
Total chats with unread messages.
no setterinherited
numMessages int
Total unread messages.
no setterinherited
numNoticeMessages int
Total unread messages with mentions.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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