StepResult<T>.fromQuestion constructor

StepResult<T>.fromQuestion({
  1. required StepResult questionResult,
})

Implementation

factory StepResult.fromQuestion({required StepResult questionResult}) {
  return StepResult(
    id: questionResult.id,
    step: questionResult.step,
    startTime: questionResult.startTime,
    endTime: questionResult.endTime,
    result: questionResult as T?,
  );
}