PollCreateRequest constructor

PollCreateRequest({
  1. required PollCreateParams params,
})

Implementation

PollCreateRequest({required PollCreateParams params}) {
  url = 'polls';

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