toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'stepKey': stepKey,
'stepLabel': stepLabel,
'showStepLabel': showStepLabel,
'stepDescription': stepDescription,
'questions': allQuestions.map((QuizQuestionModel question) => question.toJson()).toList(),
};
}