I have this class in a project which previously use swift 2.3. When i migrated the project to swift 3, xcode took forever to compile and i saw it stuck at this class. I can not
Rewrite without the big dictionary literal. So:
func toAnyObject() -> Any { var d = [String:Any]() d["id"] = id d["uid"] = uid // ... and so on ... return d }