Last active
November 15, 2018 12:40
-
-
Save gmoraleda/7a24482f0010d89fca74d1bc04f214f7 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
struct ApiResponse: Codable { | |
let errorCode: ErrorCode | |
let name: String | |
let age: Int | |
private enum CodingKeys: String, CodingKey { | |
case errorCode = "errorcode" | |
case name = "firstname" | |
case age = "userage" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment