PollGetRequest constructor Null safety

PollGetRequest(
  1. {required int pollId,
  2. required String channelUrl,
  3. required ChannelType channelType}
)

Implementation

PollGetRequest({
  required int pollId,
  required String channelUrl,
  required ChannelType channelType,
}) {
  url = 'polls/$pollId';

  queryParams = {
    'channel_url': channelUrl,
    'channel_type': channelType.urlString,
  };
}