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