LearningGoalModel.fromEntity constructor

LearningGoalModel.fromEntity(
  1. LearningGoal entity
)

Implementation

factory LearningGoalModel.fromEntity(LearningGoal entity) {
  return LearningGoalModel(
    id: entity.id,
    userId: entity.userId,
    domainId: entity.domainId,
    title: entity.title,
    description: entity.description,
    targetMastery: entity.targetMastery,
    targetDate: entity.targetDate,
    status: entity.status,
    progressPct: entity.progressPct,
  );
}