UserNoteModel.fromEntity constructor

UserNoteModel.fromEntity(
  1. UserNote entity
)

Implementation

factory UserNoteModel.fromEntity(UserNote entity) {
  return UserNoteModel(
    id: entity.id,
    userId: entity.userId,
    topicId: entity.topicId,
    sessionId: entity.sessionId,
    title: entity.title,
    content: entity.content,
    tags: entity.tags,
    isPinned: entity.isPinned,
    createdAt: entity.createdAt,
    updatedAt: entity.updatedAt,
  );
}