MessageView constructor
- @JsonSerializable(includeIfNull: false)
const
MessageView(
{ - @Default(chatBskyConvoDefsMessageView) @JsonKey(name: r'$type') String $type,
- required String id,
- required String rev,
- required String text,
- @FacetConverter() List<Facet>? facets,
- @UMessageViewEmbedConverter() UMessageViewEmbed? embed,
- @MessageViewSenderConverter() required MessageViewSender sender,
- required DateTime sentAt,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory MessageView({
/// The unique namespace for this lex object.
///
/// `chat.bsky.convo.defs#messageView`
@Default(chatBskyConvoDefsMessageView)
@JsonKey(name: r'$type')
String $type,
required String id,
required String rev,
required String text,
/// Annotations of text (mentions, URLs, hashtags, etc)
@FacetConverter() List<Facet>? facets,
@UMessageViewEmbedConverter() UMessageViewEmbed? embed,
@MessageViewSenderConverter() required MessageViewSender sender,
required DateTime sentAt,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _MessageView;