Everything works well and good structure.
This commit is contained in:
8
Sources/MusicBrainz/Internal/DynamicCodingKey.swift
Normal file
8
Sources/MusicBrainz/Internal/DynamicCodingKey.swift
Normal file
@@ -0,0 +1,8 @@
|
||||
import Foundation
|
||||
|
||||
internal struct DynamicCodingKey: CodingKey {
|
||||
var stringValue: String
|
||||
var intValue: Int?
|
||||
init?(stringValue: String) { self.stringValue = stringValue }
|
||||
init?(intValue: Int) { return nil }
|
||||
}
|
||||
Reference in New Issue
Block a user