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