AutoCat2/AutoCatCore/Models/VBrand.swift
2022-03-25 19:51:57 +03:00

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)
}
}
}