Booking

public struct Booking : Equatable
extension Booking: Decodable

The Booking object containing Rental information that can be used for the booking end point and to display booking information to the customer

    • display: Display structure containing information to display

    Declaration

    Swift

    public let display: Display
    • book: Booking object to be sent as is to the booking end point

    Declaration

    Swift

    public let book: Book
  • Initializes a Booking object

    Declaration

    Swift

    public init(display: Display,
                book: Book)
  • This function manages the nested JSON structure since the struct doesnt map directly to the JSON response

    Declaration

    Swift

    public init(from decoder: Decoder) throws