Created
August 30, 2019 15:27
-
-
Save agiletalk/5a5ddb5c268c400c88fa37b69dc94e48 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
struct User: Codable { | |
let login: String | |
var avatarUrl: String? | |
var name: String | |
var email: String? | |
let numberOfPublicRepos: Int | |
let numberOfPublicGists: Int | |
let followers: Int | |
let following: Int | |
enum CodingKeys: String, CodingKey { | |
case login | |
case avatarUrl = "avatar_url" | |
case name | |
case email | |
case numberOfPublicRepos = "public_repos" | |
case numberOfPublicGists = "public_gists" | |
case followers | |
case following | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment