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

27 lines
694 B
Swift

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