ConvoView constructor

  1. @JsonSerializable(includeIfNull: false)
const ConvoView({
  1. @Default('chat.bsky.convo.defs#convoView') String $type,
  2. required String id,
  3. required String rev,
  4. @ProfileViewBasicConverter() required List<ProfileViewBasic> members,
  5. @UConvoViewLastMessageConverter() UConvoViewLastMessage? lastMessage,
  6. @UConvoViewLastReactionConverter() UConvoViewLastReaction? lastReaction,
  7. required bool muted,
  8. @ConvoViewStatusConverter() ConvoViewStatus? status,
  9. required int unreadCount,
  10. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ConvoView({
  @Default('chat.bsky.convo.defs#convoView') String $type,
  required String id,
  required String rev,
  @ProfileViewBasicConverter() required List<ProfileViewBasic> members,
  @UConvoViewLastMessageConverter() UConvoViewLastMessage? lastMessage,
  @UConvoViewLastReactionConverter() UConvoViewLastReaction? lastReaction,
  required bool muted,
  @ConvoViewStatusConverter() ConvoViewStatus? status,
  required int unreadCount,

  Map<String, dynamic>? $unknown,
}) = _ConvoView;