class User:Mappable
{
dynamic var name:Srtring?
dynamic var players:List()
func mapping(map: Map) {
name <- map["name"]
players <- (map["players"] ,listTransform())
// this key can be friends in other scenarion but need to map same Player object .
}
}
class User:Mappable { dynamic var name:Srtring? dynamic var players:List()
func mapping(map: Map) { name <- map["name"] players <- (map["players"] ,listTransform())
// this key can be friends in other scenarion but need to map same Player object .
}
}
How can I acheive this .?