23 lines
428 B
Swift
23 lines
428 B
Swift
import Foundation
|
|
import CoreData
|
|
|
|
public struct VBrand: Decodable {
|
|
|
|
let logo: String?
|
|
let name: VName?
|
|
}
|
|
|
|
extension CDVBrand {
|
|
|
|
convenience init(vbrand: VBrand, context: NSManagedObjectContext) {
|
|
|
|
self.init(context: context)
|
|
self.logo = vbrand.logo
|
|
|
|
if let vname = vbrand.name {
|
|
self.name = CDVName(vname: vname, context: context)
|
|
}
|
|
}
|
|
|
|
}
|