You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting data from my server. The response is:
{"languages":[{"language":"en","disabled":false}]}
When I do the request the code suddenly throws EXC_BAD_INSTRUCTION and it gets stuck in the error. If I remove inheritance Object from Language.swift it works ok
LanguageResponse.swift
import ObjectMapper
class LanguageResponse: Mappable {
var languages: [Language]?
required init?(_ map: Map){
}
override func mapping(map: Map) {
super.mapping(map)
languages <- map["languages"]
}
}
I am getting data from my server. The response is:
{"languages":[{"language":"en","disabled":false}]}
When I do the request the code suddenly throws EXC_BAD_INSTRUCTION and it gets stuck in the error. If I remove inheritance Object from Language.swift it works ok
LanguageResponse.swift
Language.swift
The text was updated successfully, but these errors were encountered: