toJSON method

Map<String, dynamic> toJSON()
override

Implementation

Map<String, dynamic> toJSON() => {
      'allowMultipleVotes': allowMultipleVotes,
      'endDate': endDate ?? 0,
      'options': options.map((e) => e.toJSON()).toList(),
    };