toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'poll_id': pollId,
    'user': user,
    'option_ids': optionIds,
  }..removeWhere((_, v) => v == null);
}