Skip to content

Instantly share code, notes, and snippets.

@PauloLeon
Last active February 8, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PauloLeon/b6f8e92ffaf699b53a15e02d7fa1164b to your computer and use it in GitHub Desktop.
Save PauloLeon/b6f8e92ffaf699b53a15e02d7fa1164b to your computer and use it in GitHub Desktop.
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