This PR contains the implementation of all the models used by this service: `Amiibo`, `Amiibo.Game`, `Amiibo.Release`, `Amiibo.Usage`, `KeyName` and `LastUpdated`. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: #1
16 lines
305 B
Swift
16 lines
305 B
Swift
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"
|
|
}
|
|
}
|