Implemented the AmiiboRelease model.

This commit is contained in:
Javier Cicchelli 2023-04-18 20:31:57 +02:00
parent a1fcfdefae
commit 1b83f45867

View File

@ -0,0 +1,21 @@
import Foundation
extension Amiibo {
public struct Release {
public let australia: Date?
public let europe: Date?
public let japan: Date?
public let america: Date?
}
}
// MARK: - Decodable
extension Amiibo.Release: Decodable {
enum CodingKeys: String, CodingKey {
case australia = "au"
case europe = "eu"
case japan = "jp"
case america = "na"
}
}