StepResult.fromQuestion constructor

StepResult.fromQuestion({
  1. required QuestionResult questionResult,
})

Implementation

factory StepResult.fromQuestion({required QuestionResult questionResult}) {
  return StepResult(
    id: questionResult.id,
    startDate: questionResult.startDate,
    endDate: questionResult.endDate,
    results: [questionResult],
  );
}