PollCreateRequest constructor
PollCreateRequest({
- required PollCreateParams params,
Implementation
PollCreateRequest({required PollCreateParams params}) {
url = 'polls';
body.addAll(params.toJson());
body.removeWhere((key, value) => value == null);
}