Implemented the Location model.
This commit is contained in:
parent
74b30733df
commit
e925048aa8
@ -0,0 +1,23 @@
|
|||||||
|
//
|
||||||
|
// Location.swift
|
||||||
|
// Locations (Library)
|
||||||
|
//
|
||||||
|
// Created by Javier Cicchelli on 10/04/2023.
|
||||||
|
// Copyright © 2023 Röck+Cöde. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
public struct Location {
|
||||||
|
public let name: String?
|
||||||
|
public let latitude: Float
|
||||||
|
public let longitude: Float
|
||||||
|
}
|
||||||
|
|
||||||
|
// MARK: - Decodable
|
||||||
|
|
||||||
|
extension Location: Decodable {
|
||||||
|
enum CodingKeys: String, CodingKey {
|
||||||
|
case name
|
||||||
|
case latitude = "lat"
|
||||||
|
case longitude = "long"
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user