Skip to content

Instantly share code, notes, and snippets.

@thomaszurkan-optimizely
Created August 9, 2019 19:41
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 thomaszurkan-optimizely/bdb89797b8d86f8ccc74dcbfb15da0ec to your computer and use it in GitHub Desktop.
Save thomaszurkan-optimizely/bdb89797b8d86f8ccc74dcbfb15da0ec to your computer and use it in GitHub Desktop.
A swift data object with a generic field
struct UserAttribute: Codable, Equatable {
// MARK: - JSON parse
var name: String?
var type: String?
var match: String?
var value: Any?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment