Skip to content

Instantly share code, notes, and snippets.

@Pavneet-Sing
Created May 6, 2020 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pavneet-Sing/fab90a0590b1a78c0faf4db4f2238a76 to your computer and use it in GitHub Desktop.
Save Pavneet-Sing/fab90a0590b1a78c0faf4db4f2238a76 to your computer and use it in GitHub Desktop.
// 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