Implemented LastUpdated model.
This commit is contained in:
parent
472ed2c068
commit
14325a9933
13
Sources/Models/LastUpdated.swift
Normal file
13
Sources/Models/LastUpdated.swift
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import Foundation
|
||||||
|
|
||||||
|
public struct LastUpdated {
|
||||||
|
public let timestamp: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Decodable
|
||||||
|
|
||||||
|
extension LastUpdated: Decodable {
|
||||||
|
enum CodingKeys: String, CodingKey {
|
||||||
|
case timestamp = "lastUpdated"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user