Skip to content

Instantly share code, notes, and snippets.

@willwfsp
Last active April 12, 2020 22:31
Show Gist options
  • Save willwfsp/4391f10abea8385b9c03da2e4f29da42 to your computer and use it in GitHub Desktop.
Save willwfsp/4391f10abea8385b9c03da2e4f29da42 to your computer and use it in GitHub Desktop.
Overloaded Model
import Foundation
class User: Codable {
var login: String?
var id: Int?
var node_id: String?
var avatar_url: String?
var gravatar_id: String?
var url: String?
var html_url: String?
var followers_url: String?
var following_url: String?
var gists_url: String?
var starred_url: String?
var subscriptions_url: String?
var organizations_url: String?
var repos_url: String?
var events_url: String?
var received_events_url: String?
var type: String?
var site_admin: Bool?
var name: String
var company: String?
var blog: String?
var location: String?
var email: String?
var hireable: Bool?
var bio: String?
var public_repos: Int?
var public_gists: Int?
var followers: Int?
var following: Int?
var created_at: String?
var updated_at: String?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment