Skip to content

Instantly share code, notes, and snippets.

@emma-k-alexandra
Created July 18, 2020 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emma-k-alexandra/a06224dd1d284159204ac1f418da4555 to your computer and use it in GitHub Desktop.
Save emma-k-alexandra/a06224dd1d284159204ac1f418da4555 to your computer and use it in GitHub Desktop.
struct BaseContent: Codable {
let type: ContentType
enum ContentType: String, Codable {
case header
case paragraph
case footer
}
enum CodingKeys: String, CodingKey {
case type
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment