// // DistrictModel.swift // Learn Genie // // Created by Suraj Kumar Mandal on 06/09/21. // import Foundation import RealmSwift class DistrictModel: Object { @objc dynamic var id = 0 @objc dynamic var districtName = "" @objc dynamic var stateId = 0 @objc dynamic var districtNameHindi = "" override static func primaryKey() -> String? { return "id" } convenience init(id:Int, districtName:String, stateId:Int, districtNameHindi:String) { self.init() self.id = id self.districtName = districtName self.stateId = stateId self.districtNameHindi = districtNameHindi } }