Created
July 12, 2021 17:08
-
-
Save atulkhatri/8fd51cb2752dcbd6050575efe5e9a711 to your computer and use it in GitHub Desktop.
tvOS Bootcamp Network Manager 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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