Files
plexswift/Sources/Plexswift/models/operations/GetSourceConnectionInformationResponse.swift

27 lines
724 B
Swift

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