toJson method
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,
};
}