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