Cannot convert value of type 'QuoteData?' to expected argument type 'T.Type'

hello. I can't figure out why I get this error, or how to fix it. Thanks.

two errors appear in JSONdecoder

Cannot convert value of type 'QuoteData?' to expected argument type 'T.Type' Generic parameter 'T' could not be inferred

URLSession.shared.dataTask(with: url){ data, response, error in

            guard let data = data else{ return }

            if let decodeData = try? JSONDecoder().decode(QuoteData.self, from: data){

                DispatchQueue.main.async{

                    self.QuoteData = decodeData

What struct are you using for the data, and can you post the JSON?

Cannot convert value of type 'QuoteData?' to expected argument type 'T.Type'
 
 
Q