Skip to content

Instantly share code, notes, and snippets.

@Dimillian
Last active May 4, 2020 07:20
Show Gist options
  • Save Dimillian/df3c84f93d9d277162bd9d73f6055aab to your computer and use it in GitHub Desktop.
Save Dimillian/df3c84f93d9d277162bd9d73f6055aab to your computer and use it in GitHub Desktop.
public struct ItemResponse: Codable {
let total: Int
let results: [Item]
}
public struct Item: Codable, Equatable, Identifiable {
public var id: String { name }
public let name: String
public let image: String?
public let filename: String?
// More properties
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment