I am trying to decode the response from JSON to my object upload photo but I am facing the error. Invalid conversion from throwing function of type `(_) throws -> ()` to non-throwing function type `(DefaultDataResponse) -> Void`

```
DispatchQueue.main.async {

    let image = self.photo
    let uploaded_file = (image?.jpegData(compressionQuality: 0.2)!)!
    let url = URLs.profileImage

    Alamofire.upload(multipartFormData: { multipartFormData in
        multipartFormData.append(uploaded_file, withName: "uploaded_file",fileName: "uploaded_file", mimeType: "image/jpg") 
    }, to: url)
    { (result) in
        switch result {
        case .success(let upload, _, _):

            upload.uploadProgress(closure: { (progress) in
                print("Upload Progress: \(progress.fractionCompleted)")
            })

            upload.response { response in
                print(response.result.value!)
                let data = response.data

                print(JSON(response.data))
                let jsonDecoder = JSONDecoder()
                let res = try jsonDecoder.decode(uploadPhoto.self, from: data ) as uploadPhoto
            }

        case .failure(let encodingError):
            print(encodingError)
        }
    }
}

```

I would like to decode the response. so I can get the values from JSON.

JSON response:

```
{
    "code": 200,
    "message": "Image Uploaded Successfully",
    "image_link": "uploads\/profile\/1562737080_icons8-key-50 (1).png"
}

```