// // DebugInfo.swift // AutoCatCore // // Created by Selim Mustafaev on 03.04.2022. // import Foundation import CoreData public struct DebugInfo: Decodable { let autocod: DebugInfoEntry? let vin01vin: DebugInfoEntry? let vin01base: DebugInfoEntry? let vin01history: DebugInfoEntry? let nomerogram: DebugInfoEntry? } extension CDDebugInfo { convenience init(model: DebugInfo?, context: NSManagedObjectContext) { self.init(context: context) self.autocod = CDDebugInfoEntry(model: model?.autocod, context: context) self.vin01vin = CDDebugInfoEntry(model: model?.vin01vin, context: context) self.vin01base = CDDebugInfoEntry(model: model?.vin01base, context: context) self.vin01history = CDDebugInfoEntry(model: model?.vin01history, context: context) self.nomerogram = CDDebugInfoEntry(model: model?.nomerogram, context: context) } }