JSONKey
public struct JSONKey
Allows keys to be declared statically at compile-time, enabling them to be
referenced in a non-stringly
way.
-
The
StaticString
used to declare theJSONKey
at compile-time.Declaration
Swift
public let key: StaticString
-
A
String
representation of theJSONKey
.Declaration
Swift
public let rawValue: String
-
Constructs a new
JSONKey
using the given key.Declaration
Swift
public init(_ key: StaticString)