Skip to content

Instantly share code, notes, and snippets.

@myawesomehub
Created July 31, 2021 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myawesomehub/fa03355b99fabe0a6a5ef220d84e2e75 to your computer and use it in GitHub Desktop.
Save myawesomehub/fa03355b99fabe0a6a5ef220d84e2e75 to your computer and use it in GitHub Desktop.
struct WeatherResponse : Decodable {
let name : String
let weather : [WeatherAPI]
let main : MainAPI
}
struct WeatherAPI : Decodable {
let description : String
}
struct MainAPI : Decodable {
let temp : Double
let pressure : Double
let humidity : Double
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment