MetaCodingKey
public struct MetaCodingKey
A wrapper struct around arbitrary coding keys.
-
The string value of a coding key
Declaration
Swift
public let stringValue: String
-
The int value of a coding key
Declaration
Swift
public let intValue: Int?
-
Initalizes stringValue and intValue with the string and int values of codingKey
Declaration
Swift
public init(codingKey: CodingKey)
-
Initalizes with the given string and int value. The intValue is nil by default.
Declaration
Swift
public init(stringValue: String, intValue: Int? = nil)