// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. import Foundation extension Operations { /// A response model public enum GetCountriesLibraryResponse { case empty case badRequest(Operations.GetCountriesLibraryBadRequest) case object(Operations.GetCountriesLibraryResponseBody) case unauthorized(Operations.GetCountriesLibraryUnauthorized) var isEmpty: Bool { if case .empty = self { return true } else { return false } } public func badRequest() throws -> Operations.GetCountriesLibraryBadRequest { guard case .badRequest(let value) = self else { throw PlexswiftError.missingResponseData } return value } public func object() throws -> Operations.GetCountriesLibraryResponseBody { guard case .object(let value) = self else { throw PlexswiftError.missingResponseData } return value } public func unauthorized() throws -> Operations.GetCountriesLibraryUnauthorized { guard case .unauthorized(let value) = self else { throw PlexswiftError.missingResponseData } return value } }}