You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let personID:Int
let personName:String?
let type:String?
init(personID:Int:Int,personName:String,type:String) {
self. personID = personID
self. personName = personName
self.type = type
}
enum CodingKeys:String,CodingKey {
case personName
case personID
}
Is there any way to create a table from a model which conforms to codable?
For example
class User: Codable {
let pk: Int?
etc..
}
The text was updated successfully, but these errors were encountered: