23 lines
395 B
Swift
23 lines
395 B
Swift
//
|
|
// VModel.swift
|
|
// AutoCatCore
|
|
//
|
|
// Created by Selim Mustafaev on 29.03.2022.
|
|
//
|
|
|
|
import Foundation
|
|
import CoreData
|
|
|
|
public struct VModel: Decodable {
|
|
|
|
let name: VName?
|
|
}
|
|
|
|
extension CDVModel {
|
|
|
|
convenience init(model: VModel?, context: NSManagedObjectContext) {
|
|
self.init(context: context)
|
|
self.name = CDVName(vname: model?.name, context: context)
|
|
}
|
|
}
|