Answers for "custom coding keys swift"

0

swift custom coding keys

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
    }
}
Posted by: Guest on December-06-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language