toJson method

Map<String, dynamic> toJson()

Implementation

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