Closed krishnameena closed 7 years ago
Maybe you forget to add Mappable protocol on Token1?
I have added that , this one
public protocol Mappable {
init?(_ map: Map)
mutating func mapping(map: Map)
}
class Token1: Mappable {
var accessToken: String?
required init?(_ map: Map) {
}
// Mappable
func mapping(map: Map) {
accessToken <- map["access_token"]
}
}
Do not create your own protocol. "import ObjectMapper" in your model
Thanks you saved my day 👍