Conformed the LastUpdated model to the Codable protocol.
This commit is contained in:
parent
f0c22f2747
commit
579ffd0ce3
@ -26,10 +26,14 @@ public extension DTO {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Decodable
|
// MARK: - Codable
|
||||||
|
|
||||||
|
extension DTO.LastUpdated: Codable {
|
||||||
|
|
||||||
|
// MARK: Keys
|
||||||
|
|
||||||
extension DTO.LastUpdated: Decodable {
|
|
||||||
enum CodingKeys: String, CodingKey {
|
enum CodingKeys: String, CodingKey {
|
||||||
case timestamp = "lastUpdated"
|
case timestamp = "lastUpdated"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user