Poll

constructor(id: String, name: String, description: String, options: List<Option>, votingVisibility: VotingVisibility, enforceUniqueVote: Boolean, maxVotesAllowed: Int, allowUserSuggestedOptions: Boolean, allowAnswers: Boolean, voteCount: Int, voteCountsByOption: Map<String, Int>, votes: List<Vote>, ownVotes: List<Vote>, createdAt: Date, updatedAt: Date, closed: Boolean, answersCount: Int, answers: List<Answer> = emptyList(), createdBy: User?, extraData: Map<String, Any> = emptyMap())