Created
October 13, 2021 00:58
-
-
Save navczydev/23cc3910391c5d84fd8b0dae961bff51 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
@OptIn(ExperimentalSerializationApi::class) | |
@Serializable | |
data class Expert( | |
val id: Int, | |
val name: String, | |
val category: Category, | |
val publishedArticles: Int?, | |
// @EncodeDefault default ALWAYS | |
@EncodeDefault val recentEventLink: String? = null | |
) | |
enum class Category { | |
ANDROID, KOTLIN, DART, FLUTTER | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment