ContentChunkModel.fromEntity constructor

ContentChunkModel.fromEntity(
  1. 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,
  );
}