MessageResponse class

Annotations
  • @freezed
  • @immutable
  • @JsonSerializable.new()

Constructors

MessageResponse({required List<Attachment> attachments, required String cid, String? command, required DateTime createdAt, required Map<String, Object?> custom, DateTime? deletedAt, bool? deletedForMe, required int deletedReplyCount, DraftResponse? draft, required String html, Map<String, String>? i18n, required String id, Map<String, List<String>>? imageLabels, required List<ReactionResponse> latestReactions, ChannelMemberResponse? member, required List<UserResponse> mentionedUsers, DateTime? messageTextUpdatedAt, String? mml, ModerationV2Response? moderation, required List<ReactionResponse> ownReactions, String? parentId, DateTime? pinExpires, required bool pinned, DateTime? pinnedAt, UserResponse? pinnedBy, PollResponseData? poll, String? pollId, MessageResponse? quotedMessage, String? quotedMessageId, required Map<String, int> reactionCounts, Map<String, ReactionGroupResponse>? reactionGroups, required Map<String, int> reactionScores, ReminderResponseData? reminder, required int replyCount, required List<String> restrictedVisibility, required bool shadowed, SharedLocationResponseData? sharedLocation, bool? showInChannel, required bool silent, required String text, List<UserResponse>? threadParticipants, required MessageResponseType type, required DateTime updatedAt, required UserResponse user})
const

Properties

attachments List<Attachment>
final
cid String
final
command String?
final
copyWith → $MessageResponseCopyWith<MessageResponse>
Create a copy of MessageResponse with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
final
custom Map<String, Object?>
final
deletedAt DateTime?
final
deletedForMe bool?
final
deletedReplyCount int
final
draft DraftResponse?
final
hashCode int
The hash code for this object.
no setterinherited
html String
final
i18n Map<String, String>?
final
id String
final
imageLabels Map<String, List<String>>?
final
latestReactions List<ReactionResponse>
final
member ChannelMemberResponse?
final
mentionedUsers List<UserResponse>
final
messageTextUpdatedAt DateTime?
final
mml String?
final
moderation ModerationV2Response?
final
ownReactions List<ReactionResponse>
final
parentId String?
final
pinExpires DateTime?
final
pinned bool
final
pinnedAt DateTime?
final
pinnedBy UserResponse?
final
poll PollResponseData?
final
pollId String?
final
quotedMessage MessageResponse?
final
quotedMessageId String?
final
reactionCounts Map<String, int>
final
reactionGroups Map<String, ReactionGroupResponse>?
final
reactionScores Map<String, int>
final
reminder ReminderResponseData?
final
replyCount int
final
restrictedVisibility List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowed bool
final
sharedLocation SharedLocationResponseData?
final
showInChannel bool?
final
silent bool
final
text String
final
threadParticipants List<UserResponse>?
final
type MessageResponseType
final
updatedAt DateTime
final
user UserResponse
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) MessageResponse