Implemented the AmiiboUsage model.
This commit is contained in:
parent
d2f9b69761
commit
a1fcfdefae
15
Sources/Models/AmiiboUsage.swift
Normal file
15
Sources/Models/AmiiboUsage.swift
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
extension Amiibo {
|
||||||
|
public struct Usage {
|
||||||
|
public let explanation: String
|
||||||
|
public let isWritable: Bool
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Decodable
|
||||||
|
|
||||||
|
extension Amiibo.Usage: Decodable {
|
||||||
|
enum CodingKeys: String, CodingKey {
|
||||||
|
case explanation = "Usage"
|
||||||
|
case isWritable = "write"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user