[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 a1fcfdefae - Show all commits

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