PollUpdateRequest constructor

PollUpdateRequest({
  1. required int pollId,
  2. required PollUpdateParams params,
})

Implementation

PollUpdateRequest({
  required int pollId,
  required PollUpdateParams params,
}) {
  url = 'polls/$pollId';
  body.addAll(params.toJson());

  body.removeWhere((key, value) => value == null);
}