Skip to content

Instantly share code, notes, and snippets.

@nderkach
Created December 7, 2017 16:29
Show Gist options
  • Select an option

  • Save nderkach/c97b259a406a83f38b8ef21ecf615027 to your computer and use it in GitHub Desktop.

Select an option

Save nderkach/c97b259a406a83f38b8ef21ecf615027 to your computer and use it in GitHub Desktop.
import Foundation
struct Expense: Decodable {
let amount: Float
let createdAt: Date
let description: String
let type: String
enum CodingKeys: String, CodingKey {
case amount
case createdAt = "created_at"
case description
case type
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment