Using Codable on a dynamic type/object
Since you linked to my answer to another question, I will expand that one to answer yours. Truth is, all keys are known at runtime if you know where to look: struct GenericCodingKeys: CodingKey { var intValue: Int? var stringValue: String init?(intValue: Int) { self.intValue = intValue; self.stringValue = “\(intValue)” } init?(stringValue: String) { self.stringValue … Read more