Mercurial > public > geoquiz
comparison GeoQuiz/Models/CityPopulation.swift @ 0:413e2d21333e
first commit
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Tue, 20 Sep 2022 08:13:26 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:413e2d21333e |
---|---|
1 // | |
2 // CityPopulation.swift | |
3 // GeoQuiz | |
4 // | |
5 // Created by Dennis Concepción Martín on 7/9/22. | |
6 // | |
7 | |
8 import Foundation | |
9 | |
10 struct CityPopulation: Codable { | |
11 let cities: [String: City] | |
12 | |
13 struct City: Codable { | |
14 let country: String | |
15 let population: [Population] | |
16 } | |
17 | |
18 struct Population: Codable { | |
19 let year: Int | |
20 let value: Int | |
21 } | |
22 } |