Last active
July 27, 2020 18:01
-
-
Save giovani-pereira-ifood/889af9b27d4f1d32b8e4664417d6a99b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// { | |
// "name": "Janine", | |
// "color": "GREEN" | |
// } | |
let data = requestData() | |
let decoder = JSONDecoder() | |
let object = try? decoder.decode(User.self, from: data) | |
print(object) // nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment