Conformed the LastUpdated model to the Codable protocol.

This commit is contained in:
Javier Cicchelli 2023-07-23 16:27:27 +02:00
parent f0c22f2747
commit 579ffd0ce3

View File

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