ServerChatUpdatedParams class

Params of the server.chat.updated event.

Annotations
  • @freezed

Constructors

ServerChatUpdatedParams({@JsonKey(name: 'chats') required List<Chat> chats, @JsonKey(name: 'team_unread') TeamUnread? teamUnread, @JsonKey(name: 'badge') required int badge})
const
factory
ServerChatUpdatedParams.fromJson(Map<String, dynamic> json)
factory

Properties

badge int
Total number of unreads.
no setterinherited
chats List<Chat>
Chat counters.
no setterinherited
copyWith → $ServerChatUpdatedParamsCopyWith<ServerChatUpdatedParams>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
teamUnread TeamUnread?
Current team counters.
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