toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'question_identifier': questionIdentifier,
      'question_text': questionText,
      'question_type': questionType,
      'user_answer': userAnswer?.toJson(),
    };