updateVote method
Implementation
@override
Future<UpdateVote> updateVote({required String distinctId, required String targetId, required String category}) async {
final response = await dio.put(
'/votes/update',
data: {
'api_key': Environment.apiKey,
'campaign': Environment.campaign,
'distinct_id': distinctId,
'target_id': targetId,
'category': category,
}
);
final Map<String, dynamic> responseData = _parseResponse(response.data);
return _jsonToUpdateVote(responseData);
}