Instance Methodvapor.jwt-kit 5.1.2JWTKit
asObject(of:)
JWTHeaderField.swift:91func asObject<T>(of _: T.Type) throws -> [String : T]
func asObject<T>(of _: T.Type) throws -> [String : T]
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
indirect enum JWTHeaderField
@frozen struct String
A Unicode string value that is a collection of characters.
init(arrayLiteral elements: JWTHeaderField...)
init(booleanLiteral value: BooleanLiteralType)
init(dictionaryLiteral elements: (String, JWTHeaderField)...)
init(floatLiteral value: FloatLiteralType)
init(from decoder: any Decoder) throws
init(integerLiteral value: IntegerLiteralType)
init(nilLiteral _: ())
init(stringLiteral value: StringLiteralType)
var asArray: [Self]? { get }
var asBool: Bool? { get }
var asDecimal: Double? { get }
var asInt: Int? { get }
var asObject: [String : Self]? { get }
var asString: String? { get }
var isNull: Bool { get }
func asArray<T>(of _: T.Type) throws -> [T]
func encode(to encoder: any Encoder) throws