Skip to content

Instantly share code, notes, and snippets.

@atulkhatri
Created July 12, 2021 17:08
Show Gist options
  • Save atulkhatri/8fd51cb2752dcbd6050575efe5e9a711 to your computer and use it in GitHub Desktop.
Save atulkhatri/8fd51cb2752dcbd6050575efe5e9a711 to your computer and use it in GitHub Desktop.
tvOS Bootcamp Network Manager 7
struct PageModel: Codable {
let data: [RailModel]
}
struct RailModel: Codable {
let title, type: String
let list: [AssetModel]
}
struct AssetModel: Codable {
let id: Int
let title, summary: String
let rating: Double
let image, backdrop: String
let type: AssetType
let url: String
}
enum AssetType: String, Codable {
case movie = "movie"
case series = "series"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment