addTaskToUser method

Response addTaskToUser(
  1. String jsonRequest,
  2. int taskId
)

Implementation

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