import Foundation
import RealmSwift

public class Osago: Object, Decodable, Cloneable {
    @objc public dynamic var date: TimeInterval = 0
    @objc public dynamic var number: String = ""
    @objc public dynamic var vin: String?
    @objc public dynamic var plateNumber: String?
    @objc public dynamic var name: String = ""
    @objc public dynamic var status: String = ""
    @objc public dynamic var restrictions: String = ""
    @objc public dynamic var insurant: String?
    @objc public dynamic var owner: String?
    @objc public dynamic var usageRegion: String?
    
    public 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()
    }
}
