createPollVote method
Implementation
Future<http.Response> createPollVote({
required int? pollOption,
required int? user,
}) {
var data = json.encode({"pollOption": pollOption, "user": user});
log(data);
return post(Uri.parse('$apiURL/poll-votes/create'),
headers: {
"token":
"cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve",
"content-type": 'application/json',
},
body: data);
}