QuestionResult constructor

QuestionResult({
  1. required String question,
  2. List<Map<String, dynamic>>? answers,
  3. List<QuestionResult>? children,
})

Implementation

QuestionResult({required this.question, List<Map<String,dynamic>>? answers, List<QuestionResult>? children})
    : answers = answers ?? [],
      children = children ?? [];