MessageInput constructor

  1. @JsonSerializable(includeIfNull: false)
const MessageInput({
  1. @Default(chatBskyConvoDefsMessageInput) @JsonKey(name: r'$type') String $type,
  2. required String text,
  3. @FacetConverter() List<Facet>? facets,
  4. @UMessageInputEmbedConverter() UMessageInputEmbed? embed,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory MessageInput({
  /// The unique namespace for this lex object.
  ///
  /// `chat.bsky.convo.defs#messageInput`
  @Default(chatBskyConvoDefsMessageInput)
  @JsonKey(name: r'$type')
  String $type,
  required String text,

  /// Annotations of text (mentions, URLs, hashtags, etc)
  @FacetConverter() List<Facet>? facets,
  @UMessageInputEmbedConverter() UMessageInputEmbed? embed,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _MessageInput;