Created
August 27, 2019 04:32
-
-
Save fo2rist/aa3ab48f100719a7ee8663e5df8f6925 to your computer and use it in GitHub Desktop.
Gson Examples. Two data classes
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 WithoutDefaultConstructor( | |
val intValue: Int, | |
val strValue: String = "default" | |
) | |
data class WithDefaultConstructor( | |
val intValue: Int = 1, | |
val strValue: String = "default" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment