import Foundation
import RealmSwift

class Osago: Object, Decodable, Cloneable {
    @objc dynamic var date: TimeInterval = 0
    @objc dynamic var number: String = ""
    @objc dynamic var vin: String?
    @objc dynamic var plateNumber: String?
    @objc dynamic var name: String = ""
    @objc dynamic var status: String = ""
    @objc dynamic var restrictions: String = ""
    @objc dynamic var insurant: String?
    @objc dynamic var owner: String?
    @objc dynamic var usageRegion: String?
    
    required init(copy: Osago) {
        self.date = copy.date
        self.number = copy.number
        self.vin = copy.vin
        self.plateNumber = copy.plateNumber
        self.name = copy.name
        self.status = copy.status
        self.restrictions = copy.restrictions
        self.insurant = copy.insurant
        self.owner = copy.owner
        self.usageRegion = copy.usageRegion
    }
    
    required init() {
        super.init()
    }
}
