PollVote constructor

const PollVote({
  1. @JsonKey.new(name: 'post_id') required int postId,
  2. @JsonKey.new(name: 'poll_option_id') required int pollOptionId,
  3. required String auth,
})

Implementation

const factory PollVote({@JsonKey(name: 'post_id') required int postId, @JsonKey(name: 'poll_option_id') required int pollOptionId, required String auth}) = _PollVote;