ConvoView constructor

  1. @JsonSerializable(includeIfNull: false)
const ConvoView({
  1. @Default(chatBskyConvoDefsConvoView) @JsonKey(name: r'$type') String $type,
  2. required String id,
  3. required String rev,
  4. @ProfileViewBasicConverter() required List<ProfileViewBasic> members,
  5. @UConvoViewLastMessageConverter() UConvoViewLastMessage? lastMessage,
  6. required bool muted,
  7. required int unreadCount,
  8. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ConvoView({
  /// The unique namespace for this lex object.
  ///
  /// `chat.bsky.convo.defs#convoView`
  @Default(chatBskyConvoDefsConvoView) @JsonKey(name: r'$type') String $type,
  required String id,
  required String rev,
  @ProfileViewBasicConverter() required List<ProfileViewBasic> members,
  @UConvoViewLastMessageConverter() UConvoViewLastMessage? lastMessage,
  required bool muted,
  required int unreadCount,

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