princes-theatre-challenge

Prince's Theatre Challenge

View project on GitHub

MovieDetail Model

More details when get movie by ID. Again, QuickType safes my day - I’m forever grateful.

See: https://app.quicktype.io

// MARK: - MovieDetail
struct MovieDetail: Codable {
    let id, title, year, rated: String
    let released, runtime, genre, director: String
    let writer, actors, plot, language: String
    let country: String
    let poster: String
    let type, production: String
    let price: Double

    enum CodingKeys: String, CodingKey {
        case id = "ID"
        case title = "Title"
        case year = "Year"
        case rated = "Rated"
        case released = "Released"
        case runtime = "Runtime"
        case genre = "Genre"
        case director = "Director"
        case writer = "Writer"
        case actors = "Actors"
        case plot = "Plot"
        case language = "Language"
        case country = "Country"
        case poster = "Poster"
        case type = "Type"
        case production = "Production"
        case price = "Price"
    }
}