Created
November 28, 2022 19:37
-
-
Save TsRebornz/b4a58af95a35ac7c128a9f7331929ed1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct TableDTO: Codable { | |
let width: Int | |
let height: Int | |
let material: String | |
enum CodingKeys: String, CodingKey { | |
case width | |
case height | |
case material | |
} | |
} | |
class TableEntity: NSManagedObject { | |
} | |
extension TableEntity { | |
@NSManaged var width: Int | |
@NSManaged var height: Int | |
@NSManaged var material: String | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment