Implemented the AmiiboGame model.
This commit is contained in:
parent
1b83f45867
commit
f31487a737
17
Sources/Models/AmiiboGame.swift
Normal file
17
Sources/Models/AmiiboGame.swift
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
extension Amiibo {
|
||||||
|
public struct Game {
|
||||||
|
public let identifiers: [String]
|
||||||
|
public let name: String
|
||||||
|
public let usage: [Usage]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Decodable
|
||||||
|
|
||||||
|
extension Amiibo.Game: Decodable {
|
||||||
|
enum CodingKeys: String, CodingKey {
|
||||||
|
case identifiers = "gameID"
|
||||||
|
case name = "gameName"
|
||||||
|
case usage = "amiiboUsage"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user