Files
plexswift/Sources/Plexswift/models/operations/CheckForUpdatesResponse.swift
2024-03-18 14:51:32 -07:00

27 lines
679 B
Swift

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
import Foundation
extension Operations {
/// A response model
public enum CheckForUpdatesResponse {
case empty
case object(Operations.CheckForUpdatesResponseBody)
var isEmpty: Bool {
if case .empty = self {
return true
} else {
return false
}
}
public func object() throws -> Operations.CheckForUpdatesResponseBody {
guard case .object(let value) = self else {
throw PlexswiftError.missingResponseData
}
return value
}
}
}