view LazyBear/Global Models/IntradayPricesModel.swift @ 335:2dad5828ccf6

HomeView implemented
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Wed, 31 Mar 2021 17:06:57 +0200
parents
children
line wrap: on
line source

//
//  IntradayPricesModel.swift
//  LazyBear
//
//  Created by Dennis Concepción Martín on 31/3/21.
//

import SwiftUI

// Model prepared with batch

struct IntradayPricesArray: Codable {
    var intradayPrices: [IntradayPricesModel]

    // Change key name
    private enum CodingKeys : String, CodingKey {
           case intradayPrices = "intraday-prices"
       }
}

struct IntradayPricesModel: Codable {
    var open: Double?
}