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