Skip to content

Instantly share code, notes, and snippets.

@IsaAliev
Created February 23, 2018 19:10
Show Gist options
  • Save IsaAliev/fcc5f5a7993f57faeea011d17c4f28d4 to your computer and use it in GitHub Desktop.
Save IsaAliev/fcc5f5a7993f57faeea011d17c4f28d4 to your computer and use it in GitHub Desktop.
import Foundation
struct GitHubRepo: Decodable {
var id: Int
var name: String
var `private`: Bool
var description: String
var url: URL
var hasIssues: Bool
enum CodingKeys: String, CodingKey {
case hasIssues = "has_issues"
case id
case name
case `private`
case description
case url
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment