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 self.name = CDVName(vname: vbrand?.name, context: context) } }