AutoCat2/AutoCatCore/Models/vmodels/VBrand.swift
2022-04-03 00:40:09 +03:00

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