Skip to content

Instantly share code, notes, and snippets.

@chelseatroy
Created July 26, 2020 20:44
Show Gist options
  • Save chelseatroy/11f68219264688075f0f1c018c65fa4b to your computer and use it in GitHub Desktop.
Save chelseatroy/11f68219264688075f0f1c018c65fa4b to your computer and use it in GitHub Desktop.
Blog Post
//
// BlogPost.swift
// ScottishGaelicTattooHandbook
//
// Created by Chelsea Troy on 7/26/20.
// Copyright © 2020 Chelsea Troy. All rights reserved.
//
import Foundation
struct BlogPost: Codable {
var imageURL: String
var title: Title
enum CodingKeys: String, CodingKey {
case imageURL = "jetpack_featured_media_url"
case title = "title"
}
}
struct Title: Codable {
var rendered: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment