5:19 AM
struct Landmark: Codable { var name: String var foundingYear: Int var location: Coordinate var vantagePoints: [Coordinate] enum CodingKeys: String, CodingKey { case name = "title" case foundingYear = "founding_date" case location case vantagePoints } }
5:19 AM
他のキーも定義しないといけなくなっちゃうけど・・・
5:19 AM
Codable全部書くよりはマシにできる