[Feature] Models of the service #1

Merged
javier merged 6 commits from feature/models into main 2023-04-18 18:37:09 +00:00
Showing only changes of commit 1b83f45867 - Show all commits

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"
}
}