ContentChunkModel.fromEntity constructor
- ContentChunk entity
Implementation
factory ContentChunkModel.fromEntity(ContentChunk entity) {
return ContentChunkModel(
id: entity.id,
topicId: entity.topicId,
bookId: entity.bookId,
chunkIndex: entity.chunkIndex,
content: entity.content,
pageNumber: entity.pageNumber,
tokenCount: entity.tokenCount,
metadata: entity.metadata,
);
}