STRUCT
ApiResponse
public struct ApiResponse
Represents an API response
Properties
data
public let data: Data
statusCode
public let statusCode: Int
headers
public let headers: [String: String]
Methods
asDictionary()
public func asDictionary() throws -> [String: Any]
Get the response data as a dictionary - Returns: Dictionary representation of the response data - Throws: DecodingError if JSON parsing fails
asString()
public func asString() -> String
Get the response data as a string - Returns: String representation of the response data