toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "question": question,
    "options": options.map((i) => i).toList(),
    "is_anonymous": isAnonymous,
    "type": type.toJson(),
    "open_period": openPeriod,
    "close_date": closeDate,
    "is_closed": isClosed,
  };
}