comparison GeoQuiz/Logic/CountryModel.swift @ 19:f140bb277c96

refactor code
author Dennis C. M. <dennis@denniscm.com>
date Sun, 23 Oct 2022 00:11:38 +0100
parents a793f33f05fb
children
comparison
equal deleted inserted replaced
18:d20cf93c9812 19:f140bb277c96
5 // Created by Dennis Concepción Martín on 29/9/22. 5 // Created by Dennis Concepción Martín on 29/9/22.
6 // 6 //
7 7
8 import Foundation 8 import Foundation
9 9
10 struct CountryData: Codable { 10 struct CountryModel: Codable {
11 let countries: [String: Country] 11 let countries: [String: Country]
12 12
13 struct Country: Codable, Equatable, Hashable { 13 struct Country: Codable, Equatable, Hashable {
14 let flag: String 14 let flag: String
15 let currency: String 15 let currency: String