addBadgeToUser method
Implementation
http.Response addBadgeToUser(String jsonRequest, int badgeId) {
User? user = _userService?.addBadgeToUser(
User.fromJson(jsonDecode(jsonRequest)), badgeId);
return http.Response(jsonEncode(user), HttpStatus.ok);
}