Created
July 18, 2020 01:24
-
-
Save emma-k-alexandra/a06224dd1d284159204ac1f418da4555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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