Conversation constructor
const
Conversation({})
Creates a new conversation.
All parameters are required except updatedAt
:
id
: Unique identifier for the conversationtitle
: Display title for the conversationmessages
: List of messages in the conversationcreatedAt
: When the conversation was createdupdatedAt
: When the conversation was last updated (optional)
Implementation
const Conversation({
required this.id,
required this.title,
required this.messages,
required this.createdAt,
this.updatedAt,
});