addBadgeToUser method

Response addBadgeToUser(
  1. String jsonRequest,
  2. int badgeId
)

Implementation

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