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