toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'pollTypeQuiz',
if (extra != null) '@extra': extra,
'correct_option_id': correct_option_id,
'explanation': explanation
};
}