if let decodedResponse = try? JSONDecoder().decode(FDCResponse.self, from: data) {
decodedResponse might be nil if an JSON decoding failure occurs. Try replacing this line with let decodedResponse = try! JSONDecoder().decode(FDCResponse.self, from: data) and see if your app crash. If it crash, then you need to change the code of FDCResponse.
Topic:
App & System Services
SubTopic:
General
Tags: