From 579ffd0ce3716bc2abad16a217d8669152d58106 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sun, 23 Jul 2023 16:27:27 +0200 Subject: [PATCH] Conformed the LastUpdated model to the Codable protocol. --- Sources/Models/DTO/LastUpdated.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Sources/Models/DTO/LastUpdated.swift b/Sources/Models/DTO/LastUpdated.swift index 94224d0..f1c7f48 100644 --- a/Sources/Models/DTO/LastUpdated.swift +++ b/Sources/Models/DTO/LastUpdated.swift @@ -26,10 +26,14 @@ public extension DTO { } -// MARK: - Decodable +// MARK: - Codable -extension DTO.LastUpdated: Decodable { +extension DTO.LastUpdated: Codable { + + // MARK: Keys + enum CodingKeys: String, CodingKey { case timestamp = "lastUpdated" } + }