ServerMessageUpdatedParams class

Params of the server.message.updated event.

Annotations
  • @freezed

Constructors

ServerMessageUpdatedParams({@JsonKey(name: 'messages') required List<Message> messages, @JsonKey(name: 'delayed') required bool delayed, @JsonKey(name: 'chat_counters') required List<ChatCounters> chatCounters, @JsonKey(name: 'team_unread') TeamUnread? teamUnread, @JsonKey(name: 'badge') int? badge})
const
factory
ServerMessageUpdatedParams.fromJson(Map<String, dynamic> json)
factory

Properties

badge int?
Total number of unreads, if changed.
no setterinherited
chatCounters List<ChatCounters>
Chat counters.
no setterinherited
copyWith → $ServerMessageUpdatedParamsCopyWith<ServerMessageUpdatedParams>
no setterinherited
delayed bool
true = silently message update, false = new message.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
messages List<Message>
Messages data.
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