PollOptionGetListVotersRequest(- {required int pollId,
- required int pollOptionId,
- required String channelUrl,
- required ChannelType channelType,
- String? token,
- int limit = 100}
)
Implementation
PollOptionGetListVotersRequest({
required int pollId,
required int pollOptionId,
required String channelUrl,
required ChannelType channelType,
String? token,
int limit = 100,
}) : assert(1 <= limit && limit <= 100) {
url = 'polls/$pollId/options/$pollOptionId/voters';
queryParams = {
'token': token,
'channel_url': channelUrl,
'limit': limit,
'channel_type': channelType.urlString,
};
queryParams.removeWhere((key, value) => value == null);
}