toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'polls': polls?.map((x) => x.toMap()).toList(),
    'poll': poll.toMap(),
    'status': status,
  };
}