Created
August 9, 2019 19:41
-
-
Save thomaszurkan-optimizely/bdb89797b8d86f8ccc74dcbfb15da0ec to your computer and use it in GitHub Desktop.
A swift data object with a generic field
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 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