Message constructor

Message({
  1. String? id,
  2. required User user,
  3. required int userId,
  4. required String content,
  5. required String flow,
  6. required String role,
  7. required int threadId,
  8. dynamic widgetDefination,
  9. int? createdAt,
  10. int? updatedAt,
})

Creates a chat message model.

Implementation

Message({
  this.id,
  required this.user,
  required this.userId,
  required this.content,
  required this.flow,
  required this.role,
  required this.threadId,
  this.widgetDefination,
  this.createdAt,
  this.updatedAt,
});