PollVoteRequest constructor Null safety
- {required int pollId,
- required List<
int> pollOptionIds, - required String channelUrl,
- required ChannelType channelType}
Implementation
PollVoteRequest(
{required int pollId,
required List<int> pollOptionIds,
required String channelUrl,
required ChannelType channelType}) {
url = 'polls/$pollId/vote';
body = {
'option_ids': pollOptionIds,
'channel_url': channelUrl,
'channel_type': channelType.urlString,
};
}