SessionResponse
public struct SessionResponse : Session, @unchecked Sendable
Represents a session response parsed from a JSON object.
-
The raw JSON data of the session response.
Declaration
Swift
public let json: [String : Any]
-
Initializes a new session response with the given JSON data.
Declaration
Swift
public init(json: [String : Any] = [:])
Parameters
json
The JSON data representing the session response.
-
The session value extracted from the JSON response.
Declaration
Swift
public var value: String { get }
Return Value
A string representing the session code or an empty string if not available.