toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('paragraph')) {
    final l$paragraph = paragraph;
    result$data['paragraph'] = l$paragraph?.toJson();
  }
  if (_$data.containsKey('shortAnswer')) {
    final l$shortAnswer = shortAnswer;
    result$data['shortAnswer'] = l$shortAnswer?.toJson();
  }
  if (_$data.containsKey('rating')) {
    final l$rating = rating;
    result$data['rating'] = l$rating?.toJson();
  }
  if (_$data.containsKey('date')) {
    final l$date = date;
    result$data['date'] = l$date?.toJson();
  }
  if (_$data.containsKey('number')) {
    final l$number = number;
    result$data['number'] = l$number?.toJson();
  }
  if (_$data.containsKey('singleChoice')) {
    final l$singleChoice = singleChoice;
    result$data['singleChoice'] = l$singleChoice?.toJson();
  }
  if (_$data.containsKey('smiley')) {
    final l$smiley = smiley;
    result$data['smiley'] = l$smiley?.toJson();
  }
  return result$data;
}