App Crashing with error: generic parameter 'T' could not be inferred
问题 I'm trying to get custom object which is hashable from UserDefault. My custom model is defined below: class WorkerProfileResponse: Mappable, Hashable{ static func == (lhs: WorkerProfileResponse, rhs: WorkerProfileResponse) -> Bool { return lhs.id == rhs.id } var hashValue: Int{ return self.id! } var id, loginStatus, lastLogin, lastActive: Int? var username, email, mobileNumber: String? var userCategories: [String]? var userSubCategories: [String]? var biometricToken: String? var accessToken: