RK
Size: a a a
RK
DK
DK
S
S
S
DK
S
S
И
t
parse(){
AF.request("http://api.openweathermap.org/data/2.5/forecast?q=Tashkent&appid=f7fbda9fc5f8e8a30619d82ee864d474").responseJSON{response
in
guard
let data = response.data
else {
return}
do {
let weather =
try JSONDecoder().decode(WeatherModel.
self, from: data)
print(weather)
}
catch {
print("Error")
}
}
}
}
RK
t
Foundation
struct WeatherModel: Decodable {
var degree: String?
var clouds: String?
var city: String?
var time: String?
var image: String?
}
AB
Foundation
struct WeatherModel: Decodable {
var degree: String?
var clouds: String?
var city: String?
var time: String?
var image: String?
}
t
AB
AB
RK
t