Skip to content

Instantly share code, notes, and snippets.

@agiletalk
Created August 30, 2019 15:27
Show Gist options
  • Save agiletalk/5a5ddb5c268c400c88fa37b69dc94e48 to your computer and use it in GitHub Desktop.
Save agiletalk/5a5ddb5c268c400c88fa37b69dc94e48 to your computer and use it in GitHub Desktop.
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