toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final map = <String, dynamic>{
    'questionId': questionId,
    'selectedOptionId': selectedOptionId,
  };
  if (freeText != null) {
    map['freeText'] = freeText;
  }
  return map;
}