Created
May 13, 2024 17:09
-
-
Save birojow/949f296bc28fb20fcec7b292b300b624 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
data class User( | |
val name: String, | |
val contactInfo: ContactInfo, | |
val roles: List<Role> | |
) | |
data class ContactInfo( | |
val email: String, | |
val phoneNumber: String | |
) | |
enum class Role { | |
User, Manager, Admin | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment