LearningSessionModel.fromEntity constructor
Implementation
factory LearningSessionModel.fromEntity(LearningSession entity) {
return LearningSessionModel(
id: entity.id,
userId: entity.userId,
topicId: entity.topicId,
domainId: entity.domainId,
sessionType: entity.sessionType,
startedAt: entity.startedAt,
endedAt: entity.endedAt,
durationMinutes: entity.durationMinutes,
kolbPhase: entity.kolbPhase,
reflectionCompleted: entity.reflectionCompleted,
reflectionText: entity.reflectionText,
confidenceBefore: entity.confidenceBefore,
confidenceAfter: entity.confidenceAfter,
keyTakeaways: entity.keyTakeaways,
isValidation: entity.isValidation,
validationTarget: entity.validationTarget,
validationResult: entity.validationResult,
);
}