PollUpdateRequest constructor
PollUpdateRequest({
- required int pollId,
- required PollUpdateParams params,
Implementation
PollUpdateRequest({
required int pollId,
required PollUpdateParams params,
}) {
url = 'polls/$pollId';
body.addAll(params.toJson());
body.removeWhere((key, value) => value == null);
}