PollOptionUpdateRequest constructor

PollOptionUpdateRequest({
  1. required int pollId,
  2. required int pollOptionId,
  3. required String text,
})

Implementation

PollOptionUpdateRequest({
  required int pollId,
  required int pollOptionId,
  required String text,
}) {
  url = 'polls/$pollId/options/$pollOptionId';
  body = {'text': text};
}