toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = _$PollCreateParamsToJson(this);
  json.removeWhere((key, value) => value == null);
  return json;
}