This commit is contained in:
Ali
2021-07-29 21:07:15 +02:00
parent d46c7b739d
commit e874fa92ff
15 changed files with 869 additions and 67 deletions

View File

@@ -0,0 +1,24 @@
public struct StringCodingKey: CodingKey, ExpressibleByStringLiteral {
public var stringValue: String
public init?(stringValue: String) {
self.stringValue = stringValue
}
public init(_ stringValue: String) {
self.stringValue = stringValue
}
public init(stringLiteral: String) {
self.stringValue = stringLiteral
}
public var intValue: Int? {
return nil
}
public init?(intValue: Int) {
return nil
}
}