5 // Created by Pawel Dabrowski on 30/05/2018.
6 // Copyright © 2018 Fundacja Nowoczesna Polska. All rights reserved.
12 class CategoryModel: Object, Decodable, NSCopying {
14 @objc dynamic var url: String = ""
15 @objc dynamic var href: String = ""
16 @objc dynamic var name: String = ""
17 @objc dynamic var slug: String = ""
19 var checked: Bool = false
21 private enum CodingKeys: String, CodingKey {
28 convenience init(url: String, href: String, name: String, slug: String) {
37 func copy(with zone: NSZone? = nil) -> Any {
38 return CategoryModel(url: url, href: href, name: name, slug: slug)