struct ModuleResponse: Codable {
let result_id: Int?
let result_text: String?
let timeout: Int
let modules: [Module]?
enum CodingKeys: String, CodingKey {
case result_text = "result_text"
case result_id = "result_id"
case timeout = "timeout"
case modules = "modules"
}
}
struct Module: Codable {
let id: Int
}
Only get timeout value, others No value associated with key CodingKeys.....
Hi!
I've this XML Structure:
And my code to Parse this:
Only get timeout value, others No value associated with key CodingKeys.....
Thnks a lot!