Last active
February 8, 2018 14:14
-
-
Save PauloLeon/b6f8e92ffaf699b53a15e02d7fa1164b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init(fromJSON json: JSON) { | |
// tinha que alterar esse init: | |
let result = json["result"] | |
self.id = result["id"].stringValue | |
self.name = result["nome"].stringValue | |
self.token = result["token"].stringValue | |
self.email = result["usuario"].stringValue | |
self.cpf = result["cpf"].stringValue | |
self.password = result["senha"].stringValue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment