Created
May 6, 2020 18:13
-
-
Save Pavneet-Sing/fab90a0590b1a78c0faf4db4f2238a76 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
// Person class with occupation as nullable property using ? | |
data class Person( | |
@JsonProperty("name") val name: String, | |
@JsonProperty("occupation") val occupation: String? // nullable | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment