toEntity method

LearningPath toEntity()

Implementation

LearningPath toEntity() {
  return LearningPath(
    id: id,
    orgId: orgId,
    name: name,
    description: description,
    isOnboarding: isOnboarding,
    createdBy: createdBy,
    createdAt: createdAt,
    updatedAt: updatedAt,
    steps: steps?.map((s) => s.toEntity()).toList(),
  );
}