Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Weather: Decodable {
- let name: String
- let temperature: [String: Double]
- enum CodingKeys: String, CodingKey {
- case name = "name"
- case temperature = "main"
- }
- }
- struct Temperature: Decodable {
- let temp: Double
- let temp_min: Double
- let temp_max: Double
- enum CodingKeys: String, CodingKey {
- case temp = "temp"
- case temp_min = "temp_min"
- case temp_max = "temp_max"
- }
- }
Add Comment
Please, Sign In to add comment