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